From 22fb52a6d8321e4c375d9f3c10506387f348d1f1 Mon Sep 17 00:00:00 2001 From: Fran Bull Date: Mon, 17 Mar 2025 09:09:26 -0700 Subject: [PATCH] init the slice better --- tsconsensus/authorization.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()