From c791c7bca4549d9a96bddd4a363a1363c9542e87 Mon Sep 17 00:00:00 2001 From: "Frederick F. Kautz IV" Date: Mon, 19 Jan 2015 10:30:40 -0800 Subject: [PATCH] Store objects in memory map --- pkg/storage/storage.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/storage/storage.go b/pkg/storage/storage.go index 32ce7459c..3052bda41 100644 --- a/pkg/storage/storage.go +++ b/pkg/storage/storage.go @@ -35,7 +35,9 @@ func Start() (chan<- string, <-chan error, *Storage) { ctrlChannel := make(chan string) errorChannel := make(chan error) go start(ctrlChannel, errorChannel) - return ctrlChannel, errorChannel, &Storage{} + return ctrlChannel, errorChannel, &Storage{ + data: make(map[string][]byte), + } } func start(ctrlChannel <-chan string, errorChannel chan<- error) {