wgengine: pass in an explicit router.Router, rather than a generator.

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson
2021-03-26 21:47:28 -07:00
committed by Dave Anderson
parent 9ea5cbf81f
commit 2b4bfeda1a
3 changed files with 21 additions and 26 deletions

View File

@@ -5,14 +5,13 @@
package router
import (
"github.com/tailscale/wireguard-go/tun"
"tailscale.com/types/logger"
)
// NewFakeRouter returns a Router that does nothing when called and
// always returns nil errors.
func NewFake(logf logger.Logf, _ tun.Device) (Router, error) {
return fakeRouter{logf: logf}, nil
// NewFake returns a Router that does nothing when called and always
// returns nil errors.
func NewFake(logf logger.Logf) Router {
return fakeRouter{logf: logf}
}
type fakeRouter struct {