From 071e8488a862ba7d7a6ccf08f95606c7957594f0 Mon Sep 17 00:00:00 2001 From: wzdnzd Date: Sun, 3 Dec 2023 12:08:10 +0800 Subject: [PATCH] [fix] latency of extra should not overwrite the history (#855) --- adapter/adapter.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/adapter/adapter.go b/adapter/adapter.go index ae9584be..e239ab7b 100644 --- a/adapter/adapter.go +++ b/adapter/adapter.go @@ -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 {