close weather api

This commit is contained in:
Joel Schmid 2021-03-19 23:48:26 +01:00
parent 145da94899
commit df322b5291

View file

@ -44,11 +44,11 @@ func main() {
//setup a API -> REST
var weatherAPI api.WeatherAPI
weatherAPI = api.NewRestAPI(":10000", weatherStorage)
defer weatherAPI.Close()
err = weatherAPI.Start()
if err != nil {
os.Exit(1)
}
defer weatherAPI.Close()
}