Fix filename for backend
This commit is contained in:
parent
9493c44f2a
commit
dd46eb3379
|
@ -25,7 +25,7 @@ func (b *memoryBackend) Debug() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *memoryBackend) load() {
|
func (b *memoryBackend) load() {
|
||||||
filename := "/tmp/backend.json"
|
filename := "backend.json"
|
||||||
f, _ := os.Open(filename)
|
f, _ := os.Open(filename)
|
||||||
defer f.Close()
|
defer f.Close()
|
||||||
jw := json.NewDecoder(f)
|
jw := json.NewDecoder(f)
|
||||||
|
@ -33,7 +33,7 @@ func (b *memoryBackend) load() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *memoryBackend) save() {
|
func (b *memoryBackend) save() {
|
||||||
filename := "/tmp/backend.json"
|
filename := "backend.json"
|
||||||
f, _ := os.Create(filename)
|
f, _ := os.Create(filename)
|
||||||
defer f.Close()
|
defer f.Close()
|
||||||
jw := json.NewEncoder(f)
|
jw := json.NewEncoder(f)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user