kvdb: exclude anything bbolt related from JS builds

Since bbolt uses syscalls for memory mapping that aren't available in
JS/WASM builds, we need to make sure we don't reference that code at
all. Otherwise we can't use parts of lnd as a library in projects that
are being compiled down to a WASM binary.
This commit is contained in:
Oliver Gugger
2021-07-15 10:42:46 +02:00
parent 73aa40f00e
commit 724ca7a358
3 changed files with 52 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
// +build !js
package kvdb
import (