Skip to content

Commit

Permalink
读取fops配置时,默认2s超时
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Nov 19, 2024
1 parent 19b1f64 commit de97aa2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion configure/fopsConfigure.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ import (
"crypto/tls"
"encoding/json"
"fmt"
"github.com/farseer-go/fs/core"
"net/http"
"time"

"github.com/farseer-go/fs/core"
)

// DomainObject 配置中心
Expand All @@ -29,6 +31,7 @@ func getFopsConfigure() ([]fopsConfigureVO, error) {
InsecureSkipVerify: true, // 不验证 HTTPS 证书
},
},
Timeout: time.Second * 2, // 设置2秒超时
}
var lst []fopsConfigureVO
rsp, err := client.Do(newRequest)
Expand Down

0 comments on commit de97aa2

Please sign in to comment.