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

12 lines
298 B
Go
Raw Normal View History

2022-03-10 10:44:48 +01: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)
}