From 0af88377109a8895db5bb7d33e70d488f7ecaabd Mon Sep 17 00:00:00 2001 From: Chris Heppell Date: Thu, 31 Dec 2020 20:49:13 +0000 Subject: [PATCH] return pointer for consistency --- storage/memory.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/memory.go b/storage/memory.go index 669a4bdb..72f24324 100644 --- a/storage/memory.go +++ b/storage/memory.go @@ -16,8 +16,8 @@ type InMemoryStore struct { // NewInMemoryStore returns an in-memory store. Note that the store acts as a singleton, so although new-ing // up in-memory stores will give you a unique reference to a struct each time, all structs returned // by this function will act on the same in-memory store. -func NewInMemoryStore() InMemoryStore { - return InMemoryStore{ +func NewInMemoryStore() *InMemoryStore { + return &InMemoryStore{ serviceStatuses: make(map[string]*core.ServiceStatus), } }