Code cleanup; Indentation.

This commit is contained in:
Milos Gajdos
2020-01-14 18:48:42 +00:00
parent 0ea56a5ffe
commit dcd925f1e5
4 changed files with 62 additions and 60 deletions

View File

@@ -69,6 +69,15 @@ func newStatus() *status {
}
}
func newPeerStatus(peer *pb.Peer) *status {
return &status{
err: &nerr{
count: int(peer.Node.Status.Error.Count),
msg: errors.New(peer.Node.Status.Error.Msg),
},
}
}
func (s *status) Error() Error {
s.RLock()
defer s.RUnlock()