make Peer.String() return the common case
When we want a string representation of a Peer, we nearly always just want the full name. So make String() return that and introduce Info() to return expanded info.
This commit is contained in:
1 parent
db198652a5
commit
0cbbe9bac3
8 files changed
+20
-20
No files matched your search
+1
-1
@@ -119,7 +119,7 @@ func main() {
|
||||
config.LogFrame = logFrameFunc(debug)
|
||||
|
||||
router := weave.NewRouter(config, name, nickName)
|
||||
log.Println("Our name is", router.Ourself.FullName())
|
||||
log.Println("Our name is", router.Ourself)
|
||||
router.Start()
|
||||
initiateConnections(router, peers)
|
||||
if httpAddr != "" {
|
||||
|
||||
Reference in new issue
Block a user