Skip to content

Commit

Permalink
Move traversal to start of Announce struct
Browse files Browse the repository at this point in the history
  • Loading branch information
anacrolix authored and boypt committed Jul 22, 2021
1 parent dc287d7 commit e54f28c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions announce.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import (
// Maintains state for an ongoing Announce operation. An Announce is started by calling
// Server.Announce.
type Announce struct {
traversal traversal

Peers chan PeersValues

values chan PeersValues // Responses are pushed to this channel.
Expand All @@ -38,8 +40,6 @@ type Announce struct {
// List of pendingAnnouncePeer. TODO: Perhaps this should be sorted by distance to the target,
// so we can do that sloppy hash stuff ;).
pendingAnnouncePeers *stm.Var

traversal traversal
}

func (a *Announce) String() string {
Expand Down

0 comments on commit e54f28c

Please sign in to comment.