introduce PeerUID type

This commit is contained in:
Matthias Radestock committed 2015-05-14 12:35:01 +01:00
1 parent ace56da7b3
commit c7dd48d769
4 files changed
+14 -6

No files matched your search

+1 -1
View File
@@ -78,7 +78,7 @@ func (conn *LocalConnection) handshake(enc *gob.Encoder, dec *gob.Decoder, accep
if existingConn, found := conn.Router.Ourself.ConnectionTo(name); found && existingConn.Established() {
return fmt.Errorf("Already have connection to %s at %s", existingConn.Remote(), existingConn.RemoteTCPAddr())
}
uid, err := strconv.ParseUint(uidStr, 10, 64)
uid, err := ParsePeerUID(uidStr)
if err != nil {
return err
}