Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Zohaib Sibte Hassan committed Dec 28, 2023
1 parent cdfa495 commit e2528ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion db/change_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ func (conn *SqliteStreamDB) filterChangesTo(changed chan fsnotify.Event, watcher
}

if ev.Op == fsnotify.Chmod {
time.Sleep(1 * time.Millisecond)
continue
}

Expand All @@ -285,7 +286,7 @@ func (conn *SqliteStreamDB) watchChanges(watcher *fsnotify.Watcher, path string)

// Publish change logs for any residual change logs before starting watcher
conn.publishChangeLog()
conn.filterChangesTo(dbChanged, watcher)
go conn.filterChangesTo(dbChanged, watcher)

for {
changeLogTicker.Reset()
Expand Down

0 comments on commit e2528ad

Please sign in to comment.