Skip to content

Commit b259c9f

Browse files
committed
refactor: Move tfchain check to the very last as a fallback
1 parent 6f832d7 commit b259c9f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

pkg/perf/healthcheck/ntp.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,6 @@ func getCurrentUTCTime(zcl zbus.Client) (time.Time, error) {
7878

7979
// List of time servers
8080
var timeServers = []TimeServer{
81-
{
82-
Name: "tfchain",
83-
Func: func() (time.Time, error) {
84-
return getTimeChainWithZCL(zcl)
85-
},
86-
},
8781
{
8882
Name: "worldtimeapi",
8983
Func: getWorldTimeAPI,
@@ -96,6 +90,12 @@ func getCurrentUTCTime(zcl zbus.Client) (time.Time, error) {
9690
Name: "timeapi.io",
9791
Func: getTimeAPI,
9892
},
93+
{
94+
Name: "tfchain",
95+
Func: func() (time.Time, error) {
96+
return getTimeChainWithZCL(zcl)
97+
},
98+
},
9999
}
100100
for _, server := range timeServers {
101101
utcTime, err := server.Func()

0 commit comments

Comments
 (0)