From 2978c3378e7602ff5274692dc12d555f249deadf Mon Sep 17 00:00:00 2001 From: Andrei Mihu Date: Sat, 27 Jul 2024 12:10:07 +0100 Subject: [PATCH] Test fix. --- server/matchmaker_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/matchmaker_test.go b/server/matchmaker_test.go index 68af40038..b430b1418 100644 --- a/server/matchmaker_test.go +++ b/server/matchmaker_test.go @@ -17,6 +17,7 @@ package server import ( "context" "errors" + "github.com/heroiclabs/nakama-common/api" "math" "os" "testing" @@ -1716,6 +1717,7 @@ func NewLocalBenchMatchmaker(logger, startupLogger *zap.Logger, config Config, r indexWriter: indexWriter, stats: NewStats(10), + statsSnapshot: atomic.NewPointer[api.MatchmakerStats](&api.MatchmakerStats{}), sessionTickets: make(map[string]map[string]struct{}), partyTickets: make(map[string]map[string]struct{}), indexes: make(map[string]*MatchmakerIndex),