Skip to content

Commit

Permalink
Revert "cmd/bootnode: fix timer leak (ethereum#27754)"
Browse files Browse the repository at this point in the history
This reverts commit 9ad7158.
  • Loading branch information
devopsbo3 committed Nov 10, 2023
1 parent 563c377 commit a2fef14
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cmd/bootnode/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ func doPortMapping(natm nat.Interface, ln *enode.LocalNode, addr *net.UDPAddr) *
// Refresh the mapping periodically.
go func() {
refresh := time.NewTimer(mapTimeout)
defer refresh.Stop()
for range refresh.C {
addMapping()
refresh.Reset(mapTimeout)
Expand Down

0 comments on commit a2fef14

Please sign in to comment.