refactor: add interface check
This commit is contained in:
parent
75db7bcc7a
commit
04611d83eb
|
@ -5,6 +5,12 @@ import (
|
||||||
"github.com/vmihailenco/msgpack/v5"
|
"github.com/vmihailenco/msgpack/v5"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
_ interfaces.NodeVotes = (*NodeVotesImpl)(nil)
|
||||||
|
_ msgpack.CustomDecoder = (*NodeVotesImpl)(nil)
|
||||||
|
_ msgpack.CustomEncoder = (*NodeVotesImpl)(nil)
|
||||||
|
)
|
||||||
|
|
||||||
type NodeVotesImpl struct {
|
type NodeVotesImpl struct {
|
||||||
good int
|
good int
|
||||||
bad int
|
bad int
|
||||||
|
|
Loading…
Reference in New Issue