heatsync stability fixes #98

Manually merged
cadence merged 1 commit from l1s5/out-of-your-element:heatsync-fixes into main 2026-10-26 11:25:52 +00:00

View file

@ -13,7 +13,11 @@ const {reg} = require("./src/matrix/read-registration")
const passthrough = require("./src/passthrough") const passthrough = require("./src/passthrough")
const db = new sqlite("ooye.db") const db = new sqlite("ooye.db")
const sync = new HeatSync({watchFunction: fs.watchFile}) const sync = new HeatSync({
watchFunction: (path, options, listener) => fs.watchFile(path, options, (curr, prev) => {
if (curr.mtimeMs !== prev.mtimeMs || curr.size !== prev.size) listener()
})
})
Object.assign(passthrough, {sync, db}) Object.assign(passthrough, {sync, db})