From 04611d83eb3e8fbe7156ccde4f28a877d98d8225 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 9 Jan 2024 06:54:46 -0500 Subject: [PATCH] refactor: add interface check --- service/vote.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/service/vote.go b/service/vote.go index e8c9ab1..a1f3a31 100644 --- a/service/vote.go +++ b/service/vote.go @@ -5,6 +5,12 @@ import ( "github.com/vmihailenco/msgpack/v5" ) +var ( + _ interfaces.NodeVotes = (*NodeVotesImpl)(nil) + _ msgpack.CustomDecoder = (*NodeVotesImpl)(nil) + _ msgpack.CustomEncoder = (*NodeVotesImpl)(nil) +) + type NodeVotesImpl struct { good int bad int