Skip to content

Commit

Permalink
[fix] latency of extra should not overwrite the history (#855)
Browse files Browse the repository at this point in the history
  • Loading branch information
wzdnzd authored and wwqgtxx committed Dec 3, 2023
1 parent 22ed13b commit 071e848
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions adapter/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,6 @@ func (p *Proxy) URLTest(ctx context.Context, url string, expectedStatus utils.In
if alive {
record.Delay = t
}
p.history.Put(record)
if p.history.Len() > defaultHistoriesNum {
p.history.Pop()
}

state, ok := p.extra.Load(url)
if !ok {
Expand Down

0 comments on commit 071e848

Please sign in to comment.