Skip to content

Commit

Permalink
Small change of name in the func name to follow go conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
renatoaf committed Nov 8, 2021
1 parent 62991a0 commit 99132fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion amplitude/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (c *Client) Start() error {
}

c.state = Running
c.ctx, c.cancel = context.WithCancel(c.options.GetContext())
c.ctx, c.cancel = context.WithCancel(c.options.BaseContext())
c.flush = make(chan chan interface{}, 1)
c.shutdown = make(chan interface{}, 1)
c.closing = make(chan interface{}, 1)
Expand Down
2 changes: 1 addition & 1 deletion amplitude/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type Options struct {
UploadDelegate UploadBatchDelegate // defaults to nil
}

func (o *Options) GetContext() context.Context {
func (o *Options) BaseContext() context.Context {
if o.Context != nil {
return o.Context
}
Expand Down

0 comments on commit 99132fa

Please sign in to comment.