]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Set default file IO implementation to mmap
authorMatt Joiner <anacrolix@gmail.com>
Fri, 15 Aug 2025 01:04:35 +0000 (11:04 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Fri, 15 Aug 2025 01:04:35 +0000 (11:04 +1000)
storage/file-client.go

index dde123150ea4cb9796487e0de9a59ea362882e9e..793b7e58d90e31bd0ad261bee9139ec83999e37e 100644 (file)
@@ -72,7 +72,7 @@ func (me *fileClientImpl) Close() error {
 }
 
 var defaultFileIo func() fileIo = func() fileIo {
-       return classicFileIo{}
+       return &mmapFileIo{}
 }
 
 func init() {