From 09f7df10ed9e3c6cb570a87599f3fb7215d3292d Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Wed, 29 Dec 2021 16:21:22 +0300 Subject: [PATCH] [#111] client: Fix doc comments Signed-off-by: Pavel Karpy --- client/netmap.go | 5 +++-- client/raw.go | 2 +- client/response.go | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/client/netmap.go b/client/netmap.go index cfcf8976..48d1f495 100644 --- a/client/netmap.go +++ b/client/netmap.go @@ -12,7 +12,8 @@ import ( "github.com/nspcc-dev/neofs-sdk-go/version" ) -// EACLWithSignature represents eACL table/signature pair. +// EndpointInfo represents versioned information about the node +// specified in the client. type EndpointInfo struct { version *version.Version @@ -24,7 +25,7 @@ func (e *EndpointInfo) LatestVersion() *version.Version { return e.version } -// NodeInfo returns returns information about the NeoFS node. +// NodeInfo returns information about the NeoFS node. func (e *EndpointInfo) NodeInfo() *netmap.NodeInfo { return e.ni } diff --git a/client/raw.go b/client/raw.go index e463bd59..bc98065f 100644 --- a/client/raw.go +++ b/client/raw.go @@ -11,7 +11,7 @@ func (c *Client) Raw() *client.Client { return c.raw } -// implements Client.Conn method. +// Conn implements Client.Conn method. func (c *Client) Conn() io.Closer { return c.raw.Conn() } diff --git a/client/response.go b/client/response.go index bdc23605..364c0ae3 100644 --- a/client/response.go +++ b/client/response.go @@ -19,7 +19,7 @@ func (x ResponseMetaInfo) ResponderKey() []byte { return x.key } -// WithResponseInfoHandler allows to specify handler of response meta information for the all Client operations. +// WithResponseInfoHandler allows specifying handler of response meta information for the all Client operations. // The handler is called right after the response is received. Client returns handler's error immediately. func WithResponseInfoHandler(f func(ResponseMetaInfo) error) Option { return func(opts *clientOptions) {