Skip to content

Commit 09735da

Browse files
committed
update some http option about httpprovider and add new httpxProvider
1 parent 87700c8 commit 09735da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

provider/httpxProvider.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
// Default options for httpxProvider confs
1717
const (
1818
ExtConfSection = "http-service"
19-
DefaultClientName = "weibo-mesh-http"
19+
ClientName = "weibo-mesh-http"
2020
DefaultWriteTimeout = 1 * time.Second
2121
DefaultReadTimeout = 1 * time.Second
2222
DefaultMaxConnsPerHost = 1024
@@ -35,7 +35,7 @@ type HTTPXProvider struct {
3535
// Initialize http provider
3636
func (h *HTTPXProvider) Initialize() {
3737
h.httpClient = &fasthttp.Client{
38-
Name: DefaultClientName,
38+
Name: ClientName,
3939
WriteTimeout: DefaultWriteTimeout,
4040
ReadTimeout: DefaultReadTimeout,
4141
MaxConnsPerHost: DefaultMaxConnsPerHost,

0 commit comments

Comments
 (0)