Skip to content

Commit

Permalink
Rename context for wasm files
Browse files Browse the repository at this point in the history
  • Loading branch information
asdine committed Nov 11, 2020
1 parent 02e808b commit b7e6b80
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion db.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type DB struct {
// WithContext creates a new database handle using the given context for every operation.
func (db *DB) WithContext(ctx context.Context) *DB {
return &DB{
DB: db.DB,
DB: db.DB,
ctx: ctx,
}
}
Expand Down
2 changes: 1 addition & 1 deletion new.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func New(ctx context.Context, ng engine.Engine) (*DB, error) {
}

return &DB{
DB: db,
DB: db,
ctx: context.Background(),
}, nil
}
4 changes: 2 additions & 2 deletions new_wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func New(ctx context.Context, ng engine.Engine) (*DB, error) {
}

return &DB{
DB: db,
Context: context.Background(),
DB: db,
ctx: context.Background(),
}, nil
}

0 comments on commit b7e6b80

Please sign in to comment.