mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-24 17:04:42 +01:00
return pointer for consistency
This commit is contained in:
parent
8ca9fd7db5
commit
0af8837710
@ -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),
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user