File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ import (
22
22
"code.gitea.io/gitea/routers"
23
23
"code.gitea.io/gitea/routers/routes"
24
24
"github.com/Unknwon/com"
25
- "github.com/facebookgo/grace/gracehttp"
26
25
"github.com/go-xorm/xorm"
27
26
context2 "github.com/gorilla/context"
28
27
"gopkg.in/src-d/go-git.v4"
@@ -131,10 +130,9 @@ func runPR() {
131
130
}()
132
131
}
133
132
*/
134
- gracehttp .Serve (& http.Server {
135
- Addr : ":8080" ,
136
- Handler : context2 .ClearHandler (m ),
137
- })
133
+
134
+ //Start the server
135
+ http .ListenAndServe (":8080" , context2 .ClearHandler (m ))
138
136
139
137
log .Printf ("[PR] Cleaning up ...\n " )
140
138
/*
@@ -155,8 +153,6 @@ func runPR() {
155
153
}
156
154
}
157
155
158
- //TODO Add clean branch pr-
159
-
160
156
func main () {
161
157
var runPRFlag = flag .Bool ("run" , false , "Run the PR code" )
162
158
flag .Parse ()
You can’t perform that action at this time.
0 commit comments