aboutsummaryrefslogtreecommitdiffstats
path: root/device.go
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2018-02-12 22:29:11 +0100
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2018-02-12 22:29:11 +0100
commitea4ea6f9334b8979bec6a881d7f94d7fa94e9b9c (patch)
treee939f1c2e4c09d871918a08e9646572e318e6cf1 /device.go
parentDon't use modules (diff)
downloadwireguard-go-ea4ea6f9334b8979bec6a881d7f94d7fa94e9b9c.tar.xz
wireguard-go-ea4ea6f9334b8979bec6a881d7f94d7fa94e9b9c.zip
Revert "Don't use modules"
This reverts commit bffe99aeadae09abd02f2bd3184925af6b680535.
Diffstat (limited to 'device.go')
-rw-r--r--device.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/device.go b/device.go
index 6324948..9f93f21 100644
--- a/device.go
+++ b/device.go
@@ -1,6 +1,7 @@
package main
import (
+ "git.zx2c4.com/wireguard-go/internal/ratelimiter"
"runtime"
"sync"
"sync/atomic"
@@ -50,7 +51,7 @@ type Device struct {
rate struct {
underLoadUntil atomic.Value
- limiter Ratelimiter
+ limiter ratelimiter.Ratelimiter
}
pool struct {