Fix filename for backend

This commit is contained in:
Peter Stuifzand 2018-02-16 23:11:08 +01:00
parent 9493c44f2a
commit dd46eb3379

View File

@ -25,7 +25,7 @@ func (b *memoryBackend) Debug() {
}
func (b *memoryBackend) load() {
filename := "/tmp/backend.json"
filename := "backend.json"
f, _ := os.Open(filename)
defer f.Close()
jw := json.NewDecoder(f)
@ -33,7 +33,7 @@ func (b *memoryBackend) load() {
}
func (b *memoryBackend) save() {
filename := "/tmp/backend.json"
filename := "backend.json"
f, _ := os.Create(filename)
defer f.Close()
jw := json.NewEncoder(f)