--wip-- [skip ci]
This commit is contained in:
parent
ccf3981d8d
commit
7a8b904852
10 changed files with 282 additions and 191 deletions
2
main.go
2
main.go
|
|
@ -43,7 +43,7 @@ func main() {
|
|||
// Register signal handler
|
||||
sc := make(chan os.Signal, 1)
|
||||
signal.Notify(sc, syscall.SIGINT, syscall.SIGTERM)
|
||||
go func(resp *types.SpaceAPIResponseV14) {
|
||||
go func(resp *types.SpaceAPIResponse) {
|
||||
<-sc
|
||||
log.Println("Saving state and shutting down...")
|
||||
persistence.SaveCurrentState(*resp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue