cosmetics

This commit is contained in:
vyzo 2019-05-17 13:14:39 +03:00
parent 3140aaa2c3
commit d340d2983e
2 changed files with 4 additions and 4 deletions

View File

@ -39,8 +39,8 @@ type addrSegment struct {
size uint32
}
func (s *addrSegments) get(id peer.ID) *addrSegment {
b := []byte(id)
func (s *addrSegments) get(p peer.ID) *addrSegment {
b := []byte(p)
return s[b[len(b)-1]]
}

View File

@ -20,8 +20,8 @@ type protoSegment struct {
type protoSegments [256]*protoSegment
func (s *protoSegments) get(id peer.ID) *protoSegment {
b := []byte(id)
func (s *protoSegments) get(p peer.ID) *protoSegment {
b := []byte(p)
return s[b[len(b)-1]]
}