Skip to content

Commit

Permalink
Adjusted context, fixed #46, fixed #47
Browse files Browse the repository at this point in the history
  • Loading branch information
mrusme committed Jul 12, 2022
1 parent 69064d9 commit 04de863
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ type Database struct {
func (db *Database) init() (error) {
var err error

// ctx, cancel := context.WithCancel(context.Background())
ctx, cancel := context.WithTimeout(context.Background(), 600 * time.Second)
defer cancel()
ctx := context.Background()

db.Logger.Debug("initializing NewOrbitDB ...")
db.OrbitDB, err = orbitdb.NewOrbitDB(ctx, db.IPFSCoreAPI, &orbitdb.NewOrbitDBOptions{
Expand Down
1 change: 1 addition & 0 deletions superhighway84.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func NewLogger(filename string) (*zap.Logger, error) {
filename,
}
}

return cfg.Build()
}

Expand Down

0 comments on commit 04de863

Please sign in to comment.