Skip to content

Commit

Permalink
Merge pull request #5242 from luqz/patch-1
Browse files Browse the repository at this point in the history
update  weight canSeal and canStore when attach
  • Loading branch information
magik6k authored Jan 5, 2021
2 parents bb5a92e + d806faf commit 61b7b86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extern/sector-storage/stores/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ func (i *Index) StorageAttach(ctx context.Context, si StorageInfo, st fsutil.FsS
i.stores[si.ID].info.URLs = append(i.stores[si.ID].info.URLs, u)
}

i.stores[si.ID].info.Weight = si.Weight
i.stores[si.ID].info.CanSeal = si.CanSeal
i.stores[si.ID].info.CanStore = si.CanStore

return nil
}
i.stores[si.ID] = &storageEntry{
Expand Down

0 comments on commit 61b7b86

Please sign in to comment.