Populate buckets at start

This commit is contained in:
Frederick F. Kautz IV
2015-03-24 19:58:03 -07:00
parent 3c4012f1e7
commit cf2550b267
6 changed files with 86 additions and 19 deletions

View File

@@ -44,7 +44,11 @@ func Start(path string) (chan<- string, <-chan error, storage.Storage) {
s := new(Storage)
// TODO donut driver should be passed in as Start param and driven by config
s.donut = donut.NewDonutDriver(path)
var err error
s.donut, err = donut.NewDonutDriver(path)
if err != nil {
errorChannel <- err
}
go start(ctrlChannel, errorChannel, s)
return ctrlChannel, errorChannel, s