Commit a0cc2e53 by gongyang

设置超时时间

parent 0c7d0117
Showing with 2 additions and 0 deletions
......@@ -278,6 +278,8 @@ func requestTableInfo(tableName,currentDate string)string {
client := rpc.NewHTTPClient("http://119.23.228.186:50005/")
time := time.Second * 120
client.SetTimeout(time)
client.UseService(&sub)
result,err := sub.GetCustomsDockingData(`{"tableName":"`+tableName+`","bizDate":"`+currentDate+`"}`)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment