bitvora / wot-relay

archiving every note in your web of trust
46 stars 10 forks source link

Use compile tags to build for arm64 (switch to badgerdb) #13

Closed girino closed 1 week ago

girino commented 1 week ago

This code isolates the calls to the DB backend constructor (either LMDBBackend or BadgerBackend) and switches them if the compilation tag -tags badger is present. This enables to solve issue #9 and run on arm64 platforms.

barrydeen commented 1 week ago

how can i get it to run with just go run main.go using lmdb?

girino commented 1 week ago

how can i get it to run with just go run main.go using lmdb?

go run main.go db_default.go

or

go run main.go db_badger.go