]> Sergey Matveev's repositories - btrtrc.git/blobdiff - peer_protocol/protocol.go
Implement decoding hash request, reject and hashes
[btrtrc.git] / peer_protocol / protocol.go
index 2f92ab324d2315abd7b8d483767a9b0c1080ab70..b1790d1c1038ee59258f7b09f0ac333549174100 100644 (file)
@@ -6,6 +6,7 @@ const (
 
 type MessageType byte
 
+// golang.org/x/tools/cmd/stringer
 //go:generate stringer -type=MessageType
 
 func (mt MessageType) FastExtension() bool {
@@ -43,9 +44,9 @@ const (
        Extended MessageType = 20
 
        // BEP 52
-       HashRequest = 21
-       Hashes      = 22
-       HashReject  = 23
+       HashRequest MessageType = 21
+       Hashes      MessageType = 22
+       HashReject  MessageType = 23
 )
 
 const (