From 0e612d86b7a7713d2c02e199649c7e2a21247bd8 Mon Sep 17 00:00:00 2001 From: Julian Brost <vu20wyli@cip.cs.fau.de> Date: Thu, 8 Aug 2019 13:57:41 +0200 Subject: [PATCH] Fix json key names Got severely fucked up in commit 58d65e2e0ac29ad4d087913ce072c27b4b15fb8b, so that is suddenly expects a different config format, restore the old one. --- goatherd.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/goatherd.go b/goatherd.go index 0b497e8..2607bfa 100644 --- a/goatherd.go +++ b/goatherd.go @@ -49,12 +49,12 @@ type tlsCfg struct { } var cfg struct { - DbURL string - Lookahead uint64 - Debug bool - Listen map[string]tlsCfg - Faildelay duration - ReadTimeout duration + DbURL string `json:"db_url"` + Lookahead uint64 `json:"lookahead"` + Debug bool `json:"debug"` + Listen map[string]tlsCfg `json:"listen"` + Faildelay duration `json:"faildelay"` + ReadTimeout duration `json:"read_timeout"` } // state for per-user ratelimiting -- GitLab