Skip to content

Commit

Permalink
extra fixes
Browse files Browse the repository at this point in the history
Signed-off-by: jsign <jsign.uy@gmail.com>
  • Loading branch information
jsign committed Jan 28, 2020
1 parent cbf642c commit e765a81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions index/miner/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func (mi *MinerIndex) metaWorker() {
newIndex, err := updateMetaIndex(mi.ctx, mi.api, mi.h, mi.lr, addrs)
if err != nil {
log.Errorf("error when updating meta index: %s", err)
break
}
if err := mi.persistMetaIndex(newIndex); err != nil {
log.Errorf("error when persisting meta index: %s", err)
Expand Down
4 changes: 3 additions & 1 deletion index/miner/miner.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ func (mi *MinerIndex) Get() Index {
defer mi.lock.Unlock()
ii := Index{
Meta: MetaIndex{
Info: make(map[string]Meta, len(mi.index.Meta.Info)),
Online: mi.index.Meta.Online,
Offline: mi.index.Meta.Offline,
Info: make(map[string]Meta, len(mi.index.Meta.Info)),
},
Chain: ChainIndex{
LastUpdated: mi.index.Chain.LastUpdated,
Expand Down

0 comments on commit e765a81

Please sign in to comment.