mirror of
https://github.com/minio/minio.git
synced 2024-12-28 08:05:55 -05:00
18 lines
440 B
Go
18 lines
440 B
Go
package storage
|
|
|
|
import "errors"
|
|
|
|
func Start() (chan<- string, <-chan error) {
|
|
ctrlChannel := make(chan string)
|
|
errorChannel := make(chan error)
|
|
go start(ctrlChannel, errorChannel)
|
|
return ctrlChannel, errorChannel
|
|
}
|
|
|
|
func start(ctrlChannel <-chan string, errorChannel chan<- error) {
|
|
errorChannel <- errors.New("STORAGE MSG")
|
|
errorChannel <- errors.New("STORAGE MSG")
|
|
errorChannel <- errors.New("STORAGE MSG")
|
|
close(errorChannel)
|
|
}
|