Skip to content

Commit

Permalink
fix two golint style checks
Browse files Browse the repository at this point in the history
  • Loading branch information
chao committed Dec 30, 2018
1 parent 90b17a4 commit 5100c4f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions cmd/broadcast/utils.go
Expand Up @@ -12,15 +12,18 @@ import (
"strings"
)

// Role is the role of the node, has 3 roles: self, neighbor, all
type Role int

// Node roles
const (
Self Role = 0
Neighbor Role = 1
All Role = 2
pubKeySize int = 20
Self Role = 0
Neighbor Role = 1
All Role = 2
)

const pubKeySize int = 20

// PeerConfig is a single config of a node.
type PeerConfig struct {
Sid string // SimpleID, might be replaced later for more generic ID like byte array
Expand Down

0 comments on commit 5100c4f

Please sign in to comment.