From b259c9f6d47d797bb3122d517b856cba3fcf85fc Mon Sep 17 00:00:00 2001 From: xmonader Date: Sun, 3 Nov 2024 23:38:43 +0200 Subject: [PATCH] refactor: Move tfchain check to the very last as a fallback --- pkg/perf/healthcheck/ntp.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/perf/healthcheck/ntp.go b/pkg/perf/healthcheck/ntp.go index 5bce625ee..dd9ec025a 100644 --- a/pkg/perf/healthcheck/ntp.go +++ b/pkg/perf/healthcheck/ntp.go @@ -78,12 +78,6 @@ func getCurrentUTCTime(zcl zbus.Client) (time.Time, error) { // List of time servers var timeServers = []TimeServer{ - { - Name: "tfchain", - Func: func() (time.Time, error) { - return getTimeChainWithZCL(zcl) - }, - }, { Name: "worldtimeapi", Func: getWorldTimeAPI, @@ -96,6 +90,12 @@ func getCurrentUTCTime(zcl zbus.Client) (time.Time, error) { Name: "timeapi.io", Func: getTimeAPI, }, + { + Name: "tfchain", + Func: func() (time.Time, error) { + return getTimeChainWithZCL(zcl) + }, + }, } for _, server := range timeServers { utcTime, err := server.Func()