diff options
author | Javier Peletier <jm@epiclabs.io> | 2018-09-30 15:43:10 +0800 |
---|---|---|
committer | Javier Peletier <jm@epiclabs.io> | 2018-10-03 15:12:06 +0800 |
commit | 83705ef6aa3645a6305a400fa175e44904a929f7 (patch) | |
tree | 013c6594b7d275ab5eaa90b3969e77719787483f /swarm/swarm.go | |
parent | b35622cf3c758d96874f287d137725946fc6341d (diff) | |
download | go-tangerine-83705ef6aa3645a6305a400fa175e44904a929f7.tar go-tangerine-83705ef6aa3645a6305a400fa175e44904a929f7.tar.gz go-tangerine-83705ef6aa3645a6305a400fa175e44904a929f7.tar.bz2 go-tangerine-83705ef6aa3645a6305a400fa175e44904a929f7.tar.lz go-tangerine-83705ef6aa3645a6305a400fa175e44904a929f7.tar.xz go-tangerine-83705ef6aa3645a6305a400fa175e44904a929f7.tar.zst go-tangerine-83705ef6aa3645a6305a400fa175e44904a929f7.zip |
swarm/storage/mru: Renamed rest of MRU references
Diffstat (limited to 'swarm/swarm.go')
-rw-r--r-- | swarm/swarm.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/swarm/swarm.go b/swarm/swarm.go index 0cd56d4eb..4d9bf724f 100644 --- a/swarm/swarm.go +++ b/swarm/swarm.go @@ -186,15 +186,15 @@ func NewSwarm(config *api.Config, mockStore *mock.NodeStore) (self *Swarm, err e // Swarm Hash Merklised Chunking for Arbitrary-length Document/File storage self.fileStore = storage.NewFileStore(self.netStore, self.config.FileStoreParams) - var resourceHandler *mru.Handler - rhparams := &mru.HandlerParams{} + var feedsHandler *mru.Handler + fhParams := &mru.HandlerParams{} - resourceHandler = mru.NewHandler(rhparams) - resourceHandler.SetStore(self.netStore) + feedsHandler = mru.NewHandler(fhParams) + feedsHandler.SetStore(self.netStore) lstore.Validators = []storage.ChunkValidator{ storage.NewContentAddressValidator(storage.MakeHashFunc(storage.DefaultHash)), - resourceHandler, + feedsHandler, } log.Debug("Setup local storage") @@ -210,7 +210,7 @@ func NewSwarm(config *api.Config, mockStore *mock.NodeStore) (self *Swarm, err e pss.SetHandshakeController(self.ps, pss.NewHandshakeParams()) } - self.api = api.NewAPI(self.fileStore, self.dns, resourceHandler, self.privateKey) + self.api = api.NewAPI(self.fileStore, self.dns, feedsHandler, self.privateKey) self.sfs = fuse.NewSwarmFS(self.api) log.Debug("Initialized FUSE filesystem") |