Skip to content

Commit

Permalink
Implement MR remarks
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjan committed Mar 16, 2022
1 parent 9a4a807 commit f394f74
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func NewTestDB(ctx context.Context, dbName string, logger *logrus.Logger) *DB {
}

// create a context with timeout and purge the database
ctx, cancel := context.WithTimeout(context.Background(), MongoDefaultTimeout)
ctx, cancel := context.WithTimeout(ctx, MongoDefaultTimeout)
defer cancel()
err = db.Purge(ctx)
if err != nil {
Expand Down
1 change: 0 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"github.com/SkynetLabs/blocker/api"
"github.com/SkynetLabs/blocker/blocker"
"github.com/SkynetLabs/blocker/database"
"github.com/SkynetLabs/blocker/skyd"
"github.com/SkynetLabs/blocker/syncer"
"github.com/joho/godotenv"
"github.com/sirupsen/logrus"
Expand Down

0 comments on commit f394f74

Please sign in to comment.