tailscale/net/sockstats/sockstats_noop.go
Mihai Parparita 6ac6ddbb47 sockstats: switch label to enum
Makes it cheaper/simpler to persist values, and encourages reuse of
labels as opposed to generating an arbitrary number.

Updates tailscale/corp#9230
Updates #3363

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
2023-03-06 15:54:35 -08:00

22 lines
347 B
Go

// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
//go:build !tailscale_go || !(darwin || ios || android)
package sockstats
import (
"context"
)
func withSockStats(ctx context.Context, label Label) context.Context {
return ctx
}
func get() *SockStats {
return nil
}
func setLinkMonitor(lm LinkMonitor) {
}