From 7f647305ce0974c7420dceb92b1281dabb735c17 Mon Sep 17 00:00:00 2001 From: Chris Heppell <12884767+cjheppell@users.noreply.github.com> Date: Thu, 31 Dec 2020 22:31:51 +0000 Subject: [PATCH] Update storage/memory.go Co-authored-by: Chris C. --- storage/memory.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/memory.go b/storage/memory.go index 0a082afb..92ecb077 100644 --- a/storage/memory.go +++ b/storage/memory.go @@ -24,7 +24,7 @@ func NewInMemoryStore() *InMemoryStore { // GetAll returns all the observed results for all services from the in memory store func (ims *InMemoryStore) GetAll() map[string]*core.ServiceStatus { - results := make(map[string]*core.ServiceStatus) + results := make(map[string]*core.ServiceStatus, len(ims.serviceStatuses)) ims.serviceResultsMutex.RLock() for key, svcStatus := range ims.serviceStatuses { copiedResults := copyResults(svcStatus.Results)