status-go/vendor/github.com/anacrolix/torrent/storage/default-dir-piece-completio...

12 lines
298 B
Go
Raw Normal View History

2022-03-10 09:44:48 +00:00
// Bolt piece completion is available, and sqlite is not.
//go:build !noboltdb && !wasm && (js || nosqlite)
// +build !noboltdb
// +build !wasm
// +build js nosqlite
package storage
func NewDefaultPieceCompletionForDir(dir string) (PieceCompletion, error) {
return NewBoltPieceCompletion(dir)
}