Browse Source

fix typo in log message (#6653)

Co-authored-by: Callum Waters <cmwaters19@gmail.com>
pull/6654/head
rene 3 years ago
committed by GitHub
parent
commit
736364178a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      internal/libs/autofile/group.go

+ 2
- 2
internal/libs/autofile/group.go View File

@ -146,7 +146,7 @@ func (g *Group) OnStart() error {
func (g *Group) OnStop() { func (g *Group) OnStop() {
g.ticker.Stop() g.ticker.Stop()
if err := g.FlushAndSync(); err != nil { if err := g.FlushAndSync(); err != nil {
g.Logger.Error("Error flushin to disk", "err", err)
g.Logger.Error("Error flushing to disk", "err", err)
} }
} }
@ -160,7 +160,7 @@ func (g *Group) Wait() {
// Close closes the head file. The group must be stopped by this moment. // Close closes the head file. The group must be stopped by this moment.
func (g *Group) Close() { func (g *Group) Close() {
if err := g.FlushAndSync(); err != nil { if err := g.FlushAndSync(); err != nil {
g.Logger.Error("Error flushin to disk", "err", err)
g.Logger.Error("Error flushing to disk", "err", err)
} }
g.mtx.Lock() g.mtx.Lock()


Loading…
Cancel
Save