From f63ce0066d71a2124fd43aed946f7168d314a990 Mon Sep 17 00:00:00 2001 From: Fran Bull Date: Wed, 26 Feb 2025 09:36:20 -0800 Subject: [PATCH] comment use of mutex --- tsconsensus/authorization.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tsconsensus/authorization.go b/tsconsensus/authorization.go index ef0c89698..173e254cc 100644 --- a/tsconsensus/authorization.go +++ b/tsconsensus/authorization.go @@ -16,10 +16,11 @@ import ( ) type authorization struct { - ts *tsnet.Server - tag string - peers *peers + ts *tsnet.Server + tag string + mu sync.Mutex + peers *peers // protected by mu } func (a *authorization) refresh(ctx context.Context) error {