Skip to content

Commit d42257f

Browse files
authored
add default for upload method for restapi (#105)
1 parent 4e8ed14 commit d42257f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

indexer/gateway/upload.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ func uploadSegmentWithProof(
9595
}
9696

9797
opt := transfer.UploadOption{
98-
ExpectedReplica: expectedReplica,
98+
FinalityRequired: transfer.FileFinalized,
99+
ExpectedReplica: expectedReplica,
100+
Method: "min",
99101
}
100102
fileSegements := transfer.FileSegmentsWithProof{
101103
Segments: []node.SegmentWithProof{segment},

0 commit comments

Comments
 (0)