add the usage of integrating with http server

This commit is contained in:
Andy Pan 2018-12-02 22:03:18 +08:00
parent 22c71e561b
commit 697a030105
3 changed files with 3 additions and 3 deletions

View File

@ -121,7 +121,7 @@ func main() {
pool, _ := ants.NewPoolWithFunc(100, func(payload interface{}) {
request, ok := payload.(Request)
if !ok {
request = Request{Result: make(chan []byte)}
request = Request{Param:[]byte(""), Result: make(chan []byte)}
}
reverseParam := func(s []byte) []byte {
for i, j := 0, len(s)-1; i < j; i, j = i+1, j-1 {

View File

@ -120,7 +120,7 @@ func main() {
pool, _ := ants.NewPoolWithFunc(100, func(payload interface{}) {
request, ok := payload.(Request)
if !ok {
request = Request{Result: make(chan []byte)}
request = Request{Param:[]byte(""), Result: make(chan []byte)}
}
reverseParam := func(s []byte) []byte {
for i, j := 0, len(s)-1; i < j; i, j = i+1, j-1 {

View File

@ -16,7 +16,7 @@ func main() {
pool, _ := ants.NewPoolWithFunc(100, func(payload interface{}) {
request, ok := payload.(Request)
if !ok {
request = Request{Result: make(chan []byte)}
request = Request{Param:[]byte(""), Result: make(chan []byte)}
}
reverseParam := func(s []byte) []byte {
for i, j := 0, len(s)-1; i < j; i, j = i+1, j-1 {