From 0a0ee89665136935743b8a57dcad263bcdcb226b Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Thu, 14 Jan 2021 10:47:18 +0300 Subject: [PATCH] [#306] control: Rename WithAllowedKeys function to WithAuthorizedKeys Signed-off-by: Leonard Lyubich --- cmd/neofs-node/control.go | 2 +- pkg/services/control/server/server.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/neofs-node/control.go b/cmd/neofs-node/control.go index 128f848cf..42fae8d4e 100644 --- a/cmd/neofs-node/control.go +++ b/cmd/neofs-node/control.go @@ -40,7 +40,7 @@ func initControlService(c *cfg) { ctlSvc := controlSvc.New( controlSvc.WithKey(c.key), - controlSvc.WithAllowedKeys(keys), + controlSvc.WithAuthorizedKeys(keys), controlSvc.WithHealthChecker(c), ) diff --git a/pkg/services/control/server/server.go b/pkg/services/control/server/server.go index 97528ebea..8d4453834 100644 --- a/pkg/services/control/server/server.go +++ b/pkg/services/control/server/server.go @@ -58,9 +58,9 @@ func WithKey(key *ecdsa.PrivateKey) Option { } } -// WithAllowedKeys returns option to add list of public +// WithAuthorizedKeys returns option to add list of public // keys that have rights to use Control service. -func WithAllowedKeys(keys [][]byte) Option { +func WithAuthorizedKeys(keys [][]byte) Option { return func(c *cfg) { c.allowedKeys = append(c.allowedKeys, keys...) }