This commit is contained in:
Pijus Kamandulis
2025-05-27 21:29:23 +03:00
parent dfe65255fc
commit 5bfa8422ca
7 changed files with 38 additions and 38 deletions

View File

@@ -15,10 +15,6 @@ const (
CollectionName = "shares"
)
type Handlers struct {
DB *clover.DB
}
func InitDatabase() (*clover.DB, error) {
store, err := badgerstore.Open("badgerdb")
if err != nil {
@@ -79,4 +75,4 @@ func PrintAllHashes(db *clover.DB) {
hash := doc.Get("Hash")
fmt.Println(hash)
}
}
}