various cleanups

- please go vet
- adding missing mutex Unlock
This commit is contained in:
David Hill
2018-09-28 15:05:43 -04:00
parent a1bf37e457
commit 4ccf59a00b
7 changed files with 31 additions and 15 deletions

View File

@@ -110,8 +110,8 @@ func (b *Api) handleStream(c echo.Context) error {
c.Response().Header().Set(echo.HeaderContentType, echo.MIMEApplicationJSON)
c.Response().WriteHeader(http.StatusOK)
greet := config.Message{
Event:config.EVENT_API_CONNECTED,
Timestamp:time.Now(),
Event: config.EVENT_API_CONNECTED,
Timestamp: time.Now(),
}
if err := json.NewEncoder(c.Response()).Encode(greet); err != nil {
return err