diff --git a/tsconsensus/authorization.go b/tsconsensus/authorization.go index 4fc8bb182..e19ce0744 100644 --- a/tsconsensus/authorization.go +++ b/tsconsensus/authorization.go @@ -106,7 +106,7 @@ func (a *authorization) SelfAllowed() bool { func (a *authorization) AllowedPeers() views.Slice[*ipnstate.PeerStatus] { if a.peers == nil { - return views.SliceOf([]*ipnstate.PeerStatus{}) + return views.Slice[*ipnstate.PeerStatus]{} } a.mu.Lock() defer a.mu.Unlock()