forked from TrueCloudLab/frostfs-api-go
[#28] Replace interface{} with any
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
parent
e9e7901f67
commit
a3a5046ecc
8 changed files with 14 additions and 14 deletions
|
@ -29,7 +29,7 @@ type signatureReceiver interface {
|
|||
}
|
||||
|
||||
// SignServiceMessage signes service message with key.
|
||||
func SignServiceMessage(key *ecdsa.PrivateKey, msg interface{}) error {
|
||||
func SignServiceMessage(key *ecdsa.PrivateKey, msg any) error {
|
||||
switch v := msg.(type) {
|
||||
case nil:
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue