Store objects in memory map

This commit is contained in:
Frederick F. Kautz IV 2015-01-19 10:30:40 -08:00
parent 718794205f
commit c791c7bca4
1 changed files with 3 additions and 1 deletions

View File

@ -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) {