Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep probe interval consistent for the same outbound #1230

Merged
merged 2 commits into from
Aug 25, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Keep probe interval consistent for the same outbound
Sort outbounds before probing so the probing interval is consistent for
the same outbound.

Also fix the format of some error messages.
  • Loading branch information
digglife committed Aug 25, 2021
commit 433e3429071e87ce49e42dc7e16f6748db2acba9
2 changes: 2 additions & 0 deletions app/observatory/observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"net"
"net/http"
"net/url"
"sort"
"sync"
"time"

Expand Down Expand Up @@ -67,6 +68,7 @@ func (o *Observer) background() {
}

outbounds := hs.Select(o.config.SubjectSelector)
sort.Strings(outbounds)

o.updateStatus(outbounds)

Expand Down