Simplify error handling during startup
This commit is contained in:
parent
969dbfb1aa
commit
4b2fcbc58a
5 changed files with 29 additions and 54 deletions
|
|
@ -10,10 +10,7 @@ import (
|
|||
)
|
||||
|
||||
func Run() {
|
||||
h, err := server.New()
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
h := server.New()
|
||||
defer h.Close()
|
||||
|
||||
var handler http.Handler = h
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue