return pointer for consistency

This commit is contained in:
Chris Heppell 2020-12-31 20:49:13 +00:00
parent 8ca9fd7db5
commit 0af8837710

View File

@ -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),
}
}