Skip to content

Commit 34b6fc4

Browse files
committed
rmv delete temp dir
1 parent 286104a commit 34b6fc4

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

code/go/0chain.net/blobbercore/filestore/storage.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,6 @@ func (fs *FileStore) DeletePreCommitDir(allocID string) error {
182182
if err != nil {
183183
return common.NewError("pre_commit_dir_deletion_error", err.Error())
184184
}
185-
tempDir := fs.getAllocTempDir(allocID)
186-
err = os.RemoveAll(tempDir)
187-
if err != nil {
188-
return common.NewError("temp_dir_deletion_error", err.Error())
189-
}
190-
191185
return nil
192186
}
193187

code/go/0chain.net/blobbercore/writemarker/protocol.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ func (wme *WriteMarkerEntity) VerifyMarker(ctx context.Context, dbAllocation *al
9292
}
9393

9494
currTime := common.Now()
95-
// blobber clock is allowed to be 60 seconds behind the current time
96-
if wme.WM.Timestamp > currTime+60 {
95+
// blobber clock is allowed to be 180 seconds behind the current time
96+
if wme.WM.Timestamp > currTime+180 {
9797
return common.NewError("write_marker_validation_failed", "Write Marker timestamp is in the future")
9898
}
9999

0 commit comments

Comments
 (0)