Skip to content

Commit

Permalink
fix(main): 修正 StopAutoReload 错字
Browse files Browse the repository at this point in the history
  • Loading branch information
jwma committed Mar 26, 2020
1 parent 2fa07c2 commit 1c3aa13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion reborn.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,6 @@ func (r *Reborn) StartAutoReload() {
}()
}

func (r *Reborn) StopAuthReload() {
func (r *Reborn) StopAutoReload() {
r.autoReloadTicker.Stop()
}
2 changes: 1 addition & 1 deletion reborn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func TestAutoReload(t *testing.T) {
})

time.AfterFunc(time.Millisecond*7, func() {
reborn.StopAuthReload()
reborn.StopAutoReload()
v := reborn.GetValue(key, "")
if v != expected {
t.Errorf("v expected: %s, got: %s\n", expected, v)
Expand Down

0 comments on commit 1c3aa13

Please sign in to comment.