From 76d0c1f61d5981603389e6267bf62636f34bef1f Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Wed, 24 Jan 2024 10:41:51 -0800 Subject: Rename encode/decode methods --- hotline/account.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hotline/account.go') diff --git a/hotline/account.go b/hotline/account.go index c51162d..b041f3c 100644 --- a/hotline/account.go +++ b/hotline/account.go @@ -19,7 +19,7 @@ type Account struct { func (a *Account) Read(p []byte) (n int, err error) { fields := []Field{ NewField(FieldUserName, []byte(a.Name)), - NewField(FieldUserLogin, negateString([]byte(a.Login))), + NewField(FieldUserLogin, encodeString([]byte(a.Login))), NewField(FieldUserAccess, a.Access[:]), } -- cgit