summaryrefslogtreecommitdiffstats
path: root/device.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-02-12 20:10:44 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-02-12 20:13:03 +0100
commitbffe99aeadae09abd02f2bd3184925af6b680535 (patch)
tree556d223ebcd32b957e62e15353087b93a824641c /device.go
parentMoved test-processes to background (diff)
downloadwireguard-go-bffe99aeadae09abd02f2bd3184925af6b680535.tar.xz
wireguard-go-bffe99aeadae09abd02f2bd3184925af6b680535.zip
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.
Diffstat (limited to 'device.go')
-rw-r--r--device.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/device.go b/device.go
index 9f93f21..6324948 100644
--- a/device.go
+++ b/device.go
@@ -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 {