Shorthand for empty channels

This commit is contained in:
Jason A. Donenfeld
2018-05-14 04:19:25 +02:00
parent b76ab82539
commit 25df2e6942
3 changed files with 3 additions and 3 deletions

View File

@@ -117,7 +117,7 @@ func CreateTUNFromFile(file *os.File) (TUNDevice, error) {
mtu: 1500,
events: make(chan TUNEvent, 10),
errors: make(chan error, 1),
statusListenersShutdown: make(chan struct{}, 0),
statusListenersShutdown: make(chan struct{}),
}
_, err := tun.Name()