Skip to content

Commit

Permalink
Fix update with repair
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayashsatolia403 committed Mar 20, 2024
1 parent fe20d24 commit d8229fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wasmsdk/allocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func updateAllocationWithRepair(allocationID string,
size int64,
extend bool,
lock int64,
addBlobberId, removeBlobberId string) (string, error) {
addBlobberId, addBlobberAuthTicket, removeBlobberId string) (string, error) {
sdk.SetWasm()
allocationObj, err := sdk.GetAllocation(allocationID)
if err != nil {
Expand All @@ -193,7 +193,7 @@ func updateAllocationWithRepair(allocationID string,
statusBar := &StatusBar{wg: wg, isRepair: true}
wg.Add(1)

hash, err := allocationObj.UpdateWithRepair(size, extend, uint64(lock), addBlobberId, removeBlobberId, false, &sdk.FileOptionsParameters{}, statusBar)
hash, err := allocationObj.UpdateWithRepair(size, extend, uint64(lock), addBlobberId, addBlobberAuthTicket, removeBlobberId, false, &sdk.FileOptionsParameters{}, statusBar)
if err == nil {
clearAllocation(allocationID)
wg.Wait()
Expand Down

0 comments on commit d8229fb

Please sign in to comment.