Skip to content

Commit

Permalink
make flush time longer
Browse files Browse the repository at this point in the history
  • Loading branch information
mh0lt committed Jul 1, 2024
1 parent 4912dfb commit 67deab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/mmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func NewMMapWithCompletion(baseDir string, completion PieceCompletion) *mmapClie
}

func (s *mmapClientImpl) OpenTorrent(info *metainfo.Info, infoHash metainfo.Hash) (_ TorrentImpl, err error) {
span, err := mMapTorrent(info, infoHash, s.baseDir, 1500*time.Millisecond, func(infoHash infohash.T, flushed *roaring.Bitmap) {
span, err := mMapTorrent(info, infoHash, s.baseDir, 15*time.Second, func(infoHash infohash.T, flushed *roaring.Bitmap) {
if committer, ok := s.pc.(interface {
Flushed(infoHash infohash.T, flushed *roaring.Bitmap)
}); ok {
Expand Down

0 comments on commit 67deab1

Please sign in to comment.