refactor: add interface check
This commit is contained in:
parent
b8a38fde66
commit
b53eb16767
|
@ -11,6 +11,7 @@ import (
|
||||||
|
|
||||||
var _ msgpack.CustomDecoder = (*IncomingMessageImpl)(nil)
|
var _ msgpack.CustomDecoder = (*IncomingMessageImpl)(nil)
|
||||||
var _ IncomingMessage = (*IncomingMessageImpl)(nil)
|
var _ IncomingMessage = (*IncomingMessageImpl)(nil)
|
||||||
|
var _ IncomingMessageTyped = (*IncomingMessageImpl)(nil)
|
||||||
|
|
||||||
type IncomingMessageHandler func(node interfaces.Node, peer *net.Peer, u *url.URL, verifyId bool) error
|
type IncomingMessageHandler func(node interfaces.Node, peer *net.Peer, u *url.URL, verifyId bool) error
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue