2
0
mirror of synced 2025-02-24 06:38:14 +00:00
torrent/storage/default-dir-piece-completion-other.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

14 lines
288 B
Go

// Bolt piece completion is not available, and neither is sqlite.
//go:build wasm || noboltdb
// +build wasm noboltdb
package storage
import (
"errors"
)
func NewDefaultPieceCompletionForDir(dir string) (PieceCompletion, error) {
return nil, errors.New("y ur OS no have features")
}