Skip to content

Commit

Permalink
feat(sentry): set ntp default server to gcp
Browse files Browse the repository at this point in the history
  • Loading branch information
Savid committed Nov 24, 2022
1 parent 913cd89 commit 4a9fb50
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion example_sentry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ ethereum:
# time.aws.com - AWS
# time.windows.com - Azure
# time.google.com - GCP
ntp_server: pool.ntp.org
# pool.ntp.org - https://www.pool.ntp.org/zone/@
ntp_server: time.google.com

outputs:
- name: basic
Expand Down
2 changes: 1 addition & 1 deletion pkg/sentry/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type Config struct {
Labels map[string]string `yaml:"labels"`

// NTP Server to use for clock drift correction
NTPServer string `yaml:"ntp_server" default:"pool.ntp.org"`
NTPServer string `yaml:"ntp_server" default:"time.google.com"`
}

func (c *Config) Validate() error {
Expand Down
2 changes: 1 addition & 1 deletion pkg/sentry/sentry.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (s *Sentry) syncClockDrift(ctx context.Context) error {
}

s.clockDrift = response.ClockOffset
s.log.WithField("drift", s.clockDrift).Debug("Updated clock drift")
s.log.WithField("drift", s.clockDrift).Info("Updated clock drift")

return err
}
Expand Down

0 comments on commit 4a9fb50

Please sign in to comment.