diff --git a/database/database.go b/database/database.go index f15f7cf..30a5ca3 100644 --- a/database/database.go +++ b/database/database.go @@ -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{ diff --git a/superhighway84.go b/superhighway84.go index 0ab40ca..706d9a7 100644 --- a/superhighway84.go +++ b/superhighway84.go @@ -43,6 +43,7 @@ func NewLogger(filename string) (*zap.Logger, error) { filename, } } + return cfg.Build() }