]> Sergey Matveev's repositories - btrtrc.git/commitdiff
goimports doing its thing
authorMatt Joiner <anacrolix@gmail.com>
Sat, 18 Sep 2021 08:54:54 +0000 (18:54 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Sat, 18 Sep 2021 08:54:54 +0000 (18:54 +1000)
client.go

index d832c237d268a1295640fe9d849cbe3f120afcc9..9aa99b070650341748e71c588d21cf2b14fd5bf5 100644 (file)
--- a/client.go
+++ b/client.go
@@ -198,7 +198,7 @@ func (cl *Client) init(cfg *ClientConfig) {
        cl.torrents = make(map[metainfo.Hash]*Torrent)
        cl.dialRateLimiter = rate.NewLimiter(10, 10)
        cl.activeAnnounceLimiter.SlotsPerKey = 2
-       
+
        cl.event.L = cl.locker()
        cl.ipBlockList = cfg.IPBlocklist
 }
@@ -219,7 +219,7 @@ func NewClient(cfg *ClientConfig) (cl *Client, err error) {
                        cl = nil
                }
        }()
-       
+
        storageImpl := cfg.DefaultStorage
        if storageImpl == nil {
                // We'd use mmap by default but HFS+ doesn't support sparse files.
@@ -1112,7 +1112,7 @@ func (cl *Client) newTorrent(ih metainfo.Hash, specStorage storage.ClientImpl) (
                metadataChanged: sync.Cond{
                        L: cl.locker(),
                },
-               webSeeds: make(map[string]*Peer),
+               webSeeds:     make(map[string]*Peer),
                gotMetainfoC: make(chan struct{}),
        }
        t.networkingEnabled.Set()
@@ -1445,7 +1445,6 @@ func (cl *Client) findListener(f func(Listener) bool) (ret Listener) {
        return nil
 }
 
-
 func (cl *Client) publicIp(peer net.IP) net.IP {
        // TODO: Use BEP 10 to determine how peers are seeing us.
        if peer.To4() != nil {