doc(peer) add TODO
TODO ensure correctness at ID generation and enforce this by only exposing functions that generate IDs safely. Then any peer.ID type found in the codebase is known to be correct.
Brian Tiger Chow committed
Oct 29, 2014 at 07:16 UTC
2e0371c60ac1630e48f3d8feec475bf4c1e998cf
1 file changed
+5
peer/peer.go
+5
@@ -115,6 +115,11 @@ type peer struct {
115
}
116
117
// String prints out the peer.
118
+//
119
+// TODO(brian): ensure correctness at ID generation and
120
+// enforce this by only exposing functions that generate
121
+// IDs safely. Then any peer.ID type found in the
122
+// codebase is known to be correct.
123
func (p *peer) String() string {
124
pid := p.id.String()
125
maxRunes := 12