2
0
mirror of synced 2025-02-24 14:48:27 +00:00
torrent/storage/default-dir-piece-completion-boltdb.go
Matt Joiner 7197c5f493 Fix wasm build
This was broken in the move to zombiezen sqlite, which still doesn't work on WASM/JS.
2021-12-07 13:08:06 +11:00

12 lines
298 B
Go

// 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)
}