Skip to content

Commit

Permalink
client: Remove unused getSigner
Browse files Browse the repository at this point in the history
Signed-off-by: Evgenii Baidakov <[email protected]>
  • Loading branch information
smallhive committed Jul 5, 2023
1 parent b1faec3 commit 453521e
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,22 +140,6 @@ func (c *Client) setNeoFSAPIServer(server neoFSAPIServer) {
c.server = server
}

// getSigner returns a signer for requests. Provided signer fromPrm (if any) is prioritized, otherwise
// Client's default is used.
// Returns [ErrMissingSigner] if no signer is provided at all.
func (c *Client) getSigner(fromPrm neofscrypto.Signer) (neofscrypto.Signer, error) {
signer := fromPrm
if signer == nil {
signer = c.prm.signer
}

if signer == nil {
return nil, ErrMissingSigner
}

return signer, nil
}

// Close closes underlying connection to the NeoFS server. Implements io.Closer.
// MUST NOT be called before successful Dial. Can be called concurrently
// with server operations processing on running goroutines: in this case
Expand Down

0 comments on commit 453521e

Please sign in to comment.