Skip to content

Commit 0ec9d3d

Browse files
committed
migrate to native http listener for windows user
1 parent b103f85 commit 0ec9d3d

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

contrib/pr/checkout.go

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import (
2222
"code.gitea.io/gitea/routers"
2323
"code.gitea.io/gitea/routers/routes"
2424
"github.com/Unknwon/com"
25-
"github.com/facebookgo/grace/gracehttp"
2625
"github.com/go-xorm/xorm"
2726
context2 "github.com/gorilla/context"
2827
"gopkg.in/src-d/go-git.v4"
@@ -131,10 +130,9 @@ func runPR() {
131130
}()
132131
}
133132
*/
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))
138136

139137
log.Printf("[PR] Cleaning up ...\n")
140138
/*
@@ -155,8 +153,6 @@ func runPR() {
155153
}
156154
}
157155

158-
//TODO Add clean branch pr-
159-
160156
func main() {
161157
var runPRFlag = flag.Bool("run", false, "Run the PR code")
162158
flag.Parse()

0 commit comments

Comments
 (0)