wgengine/magicsock: make a test signature a bit more explicit

This commit is contained in:
Brad Fitzpatrick 2020-03-11 09:51:33 -07:00
parent 7ec54e0064
commit b0f8931d26
1 changed files with 2 additions and 2 deletions

View File

@ -166,8 +166,8 @@ func serveSTUN(t *testing.T) (addr string, cleanupFn func()) {
}
}
func runSTUN(t *testing.T, pc net.PacketConn, stats *stunStats, done chan struct{}) {
defer func() { done <- struct{}{} }()
func runSTUN(t *testing.T, pc net.PacketConn, stats *stunStats, done chan<- struct{}) {
defer close(done)
var buf [64 << 10]byte
for {