Skip to content

Commit

Permalink
Merge branch 'sprint-1.11' into test/performance-test
Browse files Browse the repository at this point in the history
  • Loading branch information
Hitenjain14 authored Dec 14, 2023
2 parents 5ab9207 + 310edbb commit 5a5e14d
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions zboxcore/sdk/allocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ var (
)

var (
noBLOBBERS = errors.New("", "No Blobbers set in this allocation")
notInitialized = errors.New("sdk_not_initialized", "Please call InitStorageSDK Init and use GetAllocation to get the allocation object")
IsWasm = false
MultiOpBatchSize = 10
noBLOBBERS = errors.New("", "No Blobbers set in this allocation")
notInitialized = errors.New("sdk_not_initialized", "Please call InitStorageSDK Init and use GetAllocation to get the allocation object")
IsWasm = false
)

const (
Expand Down Expand Up @@ -252,7 +251,6 @@ func GetWritePriceRange() (PriceRange, error) {
func SetWasm() {
IsWasm = true
BatchSize = 5
MultiOpBatchSize = 7
}

func getPriceRange(name string) (PriceRange, error) {
Expand Down Expand Up @@ -856,11 +854,6 @@ func (a *Allocation) DoMultiOperation(operations []OperationRequest) error {
}

for ; i < len(operations); i++ {
if len(mo.operations) >= MultiOpBatchSize {
// max batch size reached, commit
connectionID = zboxutil.NewConnectionId()
break
}
op := operations[i]
remotePath := op.RemotePath
parentPaths := GenerateParentPaths(remotePath)
Expand Down

0 comments on commit 5a5e14d

Please sign in to comment.