listObjects: Simplify channel based changes.

This commit is contained in:
Harshavardhana
2016-01-26 02:19:55 -08:00
parent 682020ef2f
commit f5d6be158e
3 changed files with 121 additions and 85 deletions

View File

@@ -34,7 +34,7 @@ type Filesystem struct {
multiparts *Multiparts
buckets *Buckets
listServiceReqCh chan<- listServiceReq
timeoutReqCh chan<- listObjectsReq
timeoutReqCh chan<- uint32
}
// Buckets holds acl information
@@ -106,8 +106,7 @@ func New(rootPath string) (Filesystem, *probe.Error) {
fs.minFreeDisk = 10
// Start list goroutine.
err = fs.startListService()
if err != nil {
if err = fs.listObjectsService(); err != nil {
return Filesystem{}, err.Trace(rootPath)
}
// Return here.