Skip to content

Commit

Permalink
fix: modified bad spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
guanwenbo committed Dec 21, 2020
1 parent 85164cb commit 13dfa02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/config_test.go
Expand Up @@ -905,7 +905,7 @@ func TestWithRandomNumber(t *testing.T) {
ServiceName: "test-random-number",
}
randomNum := func() uint64 { return 1 }
_, closer, err := cfg.NewTracer(WithRandomNunmber(randomNum))
_, closer, err := cfg.NewTracer(WithRandomNumber(randomNum))
assert.NoError(t, err)
defer closeCloser(t, closer)
}
4 changes: 2 additions & 2 deletions config/options.go
Expand Up @@ -148,8 +148,8 @@ func Extractor(format interface{}, extractor jaeger.Extractor) Option {
}
}

// WithRandomNunmber set the Tracer random number func
func WithRandomNunmber(f func() uint64) Option {
// WithRandomNumber set the Tracer random number func
func WithRandomNumber(f func() uint64) Option {
return func(c *Options) {
c.randomNumber = f
}
Expand Down

0 comments on commit 13dfa02

Please sign in to comment.