Skip to content

Commit

Permalink
feat: add GetContextualizer
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Jun 16, 2021
1 parent 760035a commit ac32717
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions corp/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ type Contextualizer interface {

var c Contextualizer = nil

func GetContextualizer() Contextualizer {
return c
}

func SetContextualizer(cc Contextualizer) {
if _, ok := cc.(*ContextNoOp); ok && c != nil {
return
Expand Down

0 comments on commit ac32717

Please sign in to comment.