From c45cef0ffe26f90c9c97d6d6261213c007e47801 Mon Sep 17 00:00:00 2001 From: Mike Zak Date: Mon, 24 Dec 2018 16:19:51 +0200 Subject: [PATCH] Typo fixes in comments --- sample-btcd.conf | 2 +- server/p2p/p2p.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sample-btcd.conf b/sample-btcd.conf index 0e61201b3..0a6ddab7e 100644 --- a/sample-btcd.conf +++ b/sample-btcd.conf @@ -106,7 +106,7 @@ ; Disable banning of misbehaving peers. ; nobanning=1 -; Maximum allowed ban score before disconnecting and banning misbehaving peers.` +; Maximum allowed ban score before disconnecting and banning misbehaving peers. ; banthreshold=100 ; How long to ban misbehaving peers. Valid time units are {s, m, h}. diff --git a/server/p2p/p2p.go b/server/p2p/p2p.go index fd92e656e..882519a0c 100644 --- a/server/p2p/p2p.go +++ b/server/p2p/p2p.go @@ -94,7 +94,7 @@ func (oa *onionAddr) Network() string { // Ensure onionAddr implements the net.Addr interface. var _ net.Addr = (*onionAddr)(nil) -// onionAddr implements the net.Addr interface with two struct fields +// simpleAddr implements the net.Addr interface with two struct fields type simpleAddr struct { net, addr string }