Working in memory donut driver

This commit is contained in:
Frederick F. Kautz IV
2015-03-15 00:41:06 -07:00
parent 15d5e74837
commit 3e453a394a
5 changed files with 193 additions and 20 deletions
+2 -1
View File
@@ -29,10 +29,11 @@ type StorageDriver struct {
}
// Start a single disk subsystem
func Start() (chan<- string, <-chan error, storage.Storage) {
func Start(donutBox donutbox.DonutBox) (chan<- string, <-chan error, storage.Storage) {
ctrlChannel := make(chan string)
errorChannel := make(chan error)
s := new(StorageDriver)
s.donutBox = donutBox
go start(ctrlChannel, errorChannel, s)
return ctrlChannel, errorChannel, s
}