aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-07-18 14:08:47 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-07-18 14:08:47 +0200
commit64cba9997afd0d7625ad7b3de31bc2cd366fa18a (patch)
treef9b1f2b478649979481a3d4736b778c385575e29
parentc0b29f0ce90760b224302e37c6fc09508fcaee4e (diff)
KISS
-rw-r--r--tracker/peer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker/peer.go b/tracker/peer.go
index 3bf319e..686dca9 100644
--- a/tracker/peer.go
+++ b/tracker/peer.go
@@ -17,7 +17,7 @@ type Peer struct {
}
func (p Peer) String() string {
- return fmt.Sprintf("%v %s %v", p.IP, url.QueryEscape(string(p.ID)), p.Port)
+ return fmt.Sprint(p.IP, url.QueryEscape(string(p.ID)), p.Port)
}
type Peers []Peer