Skip to content

Instantly share code, notes, and snippets.

@artyom
artyom / noautosave.patch
Created June 5, 2017 16:07
Patch for https://github.com/Doist/bitmapist-server/ allowing one to disable autmated periodic saving and initiate save by SIGUSR2
diff --git i/bitmapist.go w/bitmapist.go
index 0e22f2c..345ae31 100644
--- i/bitmapist.go
+++ w/bitmapist.go
@@ -18,10 +18,11 @@ import (
func main() {
args := struct {
- Addr string `flag:"addr,address to listen"`
- File string `flag:"db,path to database file"`