mirror of
https://github.com/minio/minio.git
synced 2025-03-30 17:23:42 -04:00
Store objects in memory map
This commit is contained in:
parent
718794205f
commit
c791c7bca4
@ -35,7 +35,9 @@ func Start() (chan<- string, <-chan error, *Storage) {
|
|||||||
ctrlChannel := make(chan string)
|
ctrlChannel := make(chan string)
|
||||||
errorChannel := make(chan error)
|
errorChannel := make(chan error)
|
||||||
go start(ctrlChannel, errorChannel)
|
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) {
|
func start(ctrlChannel <-chan string, errorChannel chan<- error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user