Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit f540462

Browse files
committed
[proxy]修复负载均衡选项不起作用的问题
1 parent bf79f8d commit f540462

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

teaconfigs/scheduling/scheduling_sticky.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package scheduling
22

33
import (
44
"github.com/TeaWeb/code/teaconfigs/shared"
5-
"github.com/iwind/TeaGo/logs"
65
"github.com/iwind/TeaGo/maps"
76
"math/rand"
87
"net/http"
@@ -71,7 +70,6 @@ func (this *StickyScheduling) Next(call *shared.RequestCall) CandidateInterface
7170
Path: "/",
7271
Expires: time.Now().AddDate(0, 1, 0),
7372
})
74-
logs.Println("set cookie", param, codes)
7573
})
7674
} else {
7775
call.AddResponseCall(func(resp http.ResponseWriter) {

teaconfigs/shared/request_call.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func (this *RequestCall) Reset() {
2525
this.Formatter = nil
2626
this.Request = nil
2727
this.ResponseCallbacks = nil
28-
this.Options = nil
28+
this.Options = maps.Map{}
2929
}
3030

3131
// 添加响应回调

0 commit comments

Comments
 (0)