close weather api
This commit is contained in:
parent
145da94899
commit
df322b5291
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -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()
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue