net/sockstats: remove explicit dependency on wgengine/monitor

Followup to #7177 to avoid adding extra dependencies to the CLI. We
instead declare an interface for the link monitor.

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
This commit is contained in:
Mihai Parparita
2023-03-03 08:37:14 -08:00
committed by GitHub
parent 7b73c9628d
commit 3e71e0ef68
7 changed files with 22 additions and 20 deletions

View File

@@ -7,8 +7,6 @@ package sockstats
import (
"context"
"tailscale.com/wgengine/monitor"
)
func withSockStats(ctx context.Context, label string) context.Context {
@@ -19,5 +17,5 @@ func get() *SockStats {
return nil
}
func setLinkMonitor(lm *monitor.Mon) {
func setLinkMonitor(lm LinkMonitor) {
}