Fix indent on README (#89)

This commit is contained in:
wreulicke 2020-04-29 16:08:43 +09:00 committed by GitHub
parent f33679bb79
commit 88b5a85d64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -139,7 +139,7 @@ type Request struct {
}
func main() {
pool, _ := ants.NewPoolWithFunc(100000, func(payload interface{}) {
pool, _ := ants.NewPoolWithFunc(100000, func(payload interface{}) {
request, ok := payload.(*Request)
if !ok {
return
@ -152,7 +152,7 @@ func main() {
}(request.Param)
request.Result <- reverseParam
})
})
defer pool.Release()
http.HandleFunc("/reverse", func(w http.ResponseWriter, r *http.Request) {

View File

@ -139,7 +139,7 @@ type Request struct {
}
func main() {
pool, _ := ants.NewPoolWithFunc(100000, func(payload interface{}) {
pool, _ := ants.NewPoolWithFunc(100000, func(payload interface{}) {
request, ok := payload.(*Request)
if !ok {
return
@ -152,7 +152,7 @@ func main() {
}(request.Param)
request.Result <- reverseParam
})
})
defer pool.Release()
http.HandleFunc("/reverse", func(w http.ResponseWriter, r *http.Request) {