Skip to content

Commit

Permalink
Deprecated: WithContext
Browse files Browse the repository at this point in the history
  • Loading branch information
cjp2600 committed Aug 24, 2020
1 parent b2b16f9 commit 7fb7ab9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,9 @@ func SetModel(document interface{}) Option {
}
}

// SetContext set custom context
// Deprecated: SetContext method should not be used
func SetContext(ctx context.Context) Option {
return func(b *Bom) error {
b.ctx, b.cancel = context.WithTimeout(ctx, b.queryTimeout)
return nil
}
}

0 comments on commit 7fb7ab9

Please sign in to comment.