Don't use modules

Feel free to revert this if you have a strong feeling about it. But so
far as I can see, it adds a lot of complexity for basically no upsides.
This commit is contained in:
Jason A. Donenfeld
2018-02-12 20:10:44 +01:00
parent 77285c99aa
commit bffe99aead
9 changed files with 20 additions and 23 deletions

View File

@ -1,7 +1,6 @@
package main
import (
"git.zx2c4.com/wireguard-go/internal/ratelimiter"
"runtime"
"sync"
"sync/atomic"
@ -51,7 +50,7 @@ type Device struct {
rate struct {
underLoadUntil atomic.Value
limiter ratelimiter.Ratelimiter
limiter Ratelimiter
}
pool struct {