Skip to content

Commit

Permalink
#4 paid persists services in a user-specific dump file
Browse files Browse the repository at this point in the history
  • Loading branch information
didenko committed May 29, 2015
1 parent f43957d commit 175c071
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/github.com/didenko/pald/internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ func Run(portSvr, portMin, portMax uint16, dumpName string) {
log.Panic(err)
}

err = persist.Load(dump, reg)
if err != nil {
log.Panic(err)
}

flusher = persist.Persist(reg, dump, time.Second)

log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", portSvr), nil))
Expand Down

0 comments on commit 175c071

Please sign in to comment.