Skip to content

Commit

Permalink
simplify Ready()
Browse files Browse the repository at this point in the history
  • Loading branch information
SaveTheRbtz committed Jul 26, 2022
1 parent 48df68a commit 93370c8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions module/trace/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ func NewTracer(
// Ready returns a channel that will close when the network stack is ready.
func (t *Tracer) Ready() <-chan struct{} {
ready := make(chan struct{})
go func() {
close(ready)
}()
close(ready)
return ready
}

Expand Down

0 comments on commit 93370c8

Please sign in to comment.