diff options
author | terminaldweller <thabogre@gmail.com> | 2021-02-26 03:29:18 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2021-02-26 03:29:18 +0000 |
commit | 09d2e7b1a5369d7bdc9086de25610b682fab15af (patch) | |
tree | e7a221fbdfe0535f905365baa958e8f8d957ca5d /hived.go | |
parent | added a health endpoint. change endpoint name to alert. added a health endpoi... (diff) | |
download | hived-09d2e7b1a5369d7bdc9086de25610b682fab15af.tar.gz hived-09d2e7b1a5369d7bdc9086de25610b682fab15af.zip |
fixed a typo. updated README
Diffstat (limited to 'hived.go')
-rw-r--r-- | hived.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -27,7 +27,6 @@ import ( var flagPort = flag.String("port", "8008", "determined the port the sercice runs on") -var alertFile = flag.String("alertfile", "/run/secrets/alerts", "determines the locaiton of the alert files") var alertsCheckInterval = flag.Int64("alertinterval", 600., "in seconds, the amount of time between alert checks") var redisAddress = flag.String("redisaddress", "redis:6379", "determines the address of the redis instance") var redisPassword = flag.String("redispassword", "", "determines the password of the redis db") @@ -455,7 +454,7 @@ func handleAlertDelete(w http.ResponseWriter, r *http.Request) { params := r.URL.Query() for key, value := range params { switch key { - case "Id": + case "id": Id = value[0] default: log.Error().Err(errors.New("bad parameters for the crypto endpoint.")) |