Skip to content

Commit

Permalink
Move import to comment to fix test compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Feb 26, 2022
1 parent 0b72890 commit 1051bbd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import (
"os/signal"
"syscall"

_ "github.com/mattn/go-sqlite3"

"go.mau.fi/whatsmeow"
"go.mau.fi/whatsmeow/store/sqlstore"
"go.mau.fi/whatsmeow/types/events"
Expand All @@ -30,6 +28,7 @@ func eventHandler(evt interface{}) {

func Example() {
dbLog := waLog.Stdout("Database", "DEBUG", true)
// Make sure you add appropriate DB connector imports, e.g. github.com/mattn/go-sqlite3 for SQLite
container, err := sqlstore.New("sqlite3", "file:examplestore.db?_foreign_keys=on", dbLog)
if err != nil {
panic(err)
Expand Down

0 comments on commit 1051bbd

Please sign in to comment.