From 7c59916c2220ce49be36b480797b6ffacd92e679 Mon Sep 17 00:00:00 2001 From: xishang0128 Date: Sun, 24 Sep 2023 00:19:10 +0800 Subject: [PATCH] chore: update provider proxies api --- adapter/adapter.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/adapter/adapter.go b/adapter/adapter.go index 13f7f06f8..e9ce59bb0 100644 --- a/adapter/adapter.go +++ b/adapter/adapter.go @@ -217,6 +217,10 @@ 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 {