From 9c8c0e08df947bf3f7ccd479747b4f768312e614 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sun, 27 Mar 2016 16:33:48 +0800 Subject: [PATCH] replace endless with manners Signed-off-by: Bo-Yi Wu --- main.go => gorush.go | 0 gorush/server.go | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename main.go => gorush.go (100%) diff --git a/main.go b/gorush.go similarity index 100% rename from main.go rename to gorush.go diff --git a/gorush/server.go b/gorush/server.go index 0231bd3..6130c19 100644 --- a/gorush/server.go +++ b/gorush/server.go @@ -2,7 +2,7 @@ package gopush import ( api "github.com/appleboy/gin-status-api" - "github.com/fvbock/endless" + "github.com/braintree/manners" "github.com/gin-gonic/gin" "log" "net/http" @@ -55,5 +55,5 @@ func GetMainEngine() *gin.Engine { } func RunHTTPServer() { - endless.ListenAndServe(":"+PushConf.Core.Port, GetMainEngine()) + manners.ListenAndServe(":"+PushConf.Core.Port, GetMainEngine()) }