Commit Graph

3 Commits

Author SHA1 Message Date
Bo-Yi Wu bcd0e70252
feat(server): support graceful shutdown (#461)
* feat(server): support graceful shutdown

for http server

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2020-02-04 17:10:12 +08:00
Bo-Yi Wu 2d2a8a0110
feat(worker): support graceful shutdown (#459)
* feat(worker): support graceful shutdown

notifications workers and queue have been sent to APNs/FCM before shutdown a push notification.

send buffered channel to signal.Notify to avoid blocking

see: golang/lint#175

fixed: https://github.com/appleboy/gorush/issues/441

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2020-02-04 13:27:27 +08:00
Bo-Yi Wu d86ccf15ea
fix: Cannot build for aws lambda (#433)
* fix: Cannot build for aws lambda

fix: https://github.com/appleboy/gorush/issues/432

* update command

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* update command

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2019-10-27 11:13:49 +08:00