Skip to content

Commit 0a44939

Browse files
authored
refactor(time): time sync interval to 10s (#54)
This is a temporary solution, awaiting further optimization. Signed-off-by: Kevin Cui <bh@bugs.cc>
1 parent f94c7da commit 0a44939

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/machine/shim/host.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,11 +261,11 @@ func Start(mc *vmconfigs.MachineConfig, mp vmconfigs.VMProvider, dirs *define.Ma
261261
return fmt.Errorf("failed to update last boot time: %w", err)
262262
}
263263

264-
const defaultTimeSyncInterval = 10 * time.Minute
264+
// TODO: temp fix for time sync issue @ihexon @BlackHole1
265+
const defaultTimeSyncInterval = 10 * time.Second
265266

266267
go func() {
267268
for {
268-
logrus.Infof("Time sync starting...")
269269
err := system.TimeSync(mc)
270270
if err != nil {
271271
logrus.Warnf("Time sync failed: %v", err)

0 commit comments

Comments
 (0)