Skip to content

Commit 6917aef

Browse files
committed
Minor change to QueryOptions ordering
1 parent 3dfba1d commit 6917aef

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ntp.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,11 @@ type QueryOptions struct {
236236
// transmitted and to process NTP responses after they arrive.
237237
Extensions []Extension
238238

239+
// GetSystemTime is a callback used to override the default method of
240+
// obtaining the local system time during time synchronization. If not
241+
// specified, time.Now is used.
242+
GetSystemTime func() time.Time
243+
239244
// Dialer is a callback used to override the default UDP network dialer.
240245
// The localAddress is directly copied from the LocalAddress field
241246
// specified in QueryOptions. It may be the empty string or a host address
@@ -249,11 +254,6 @@ type QueryOptions struct {
249254
// DEPRECATED. Use Dialer instead.
250255
Dial func(laddr string, lport int, raddr string, rport int) (net.Conn, error)
251256

252-
// GetSystemTime is a callback used to override the default method of
253-
// obtaining the local system time during time synchronization. If not
254-
// specified, time.Now is used.
255-
GetSystemTime func() time.Time
256-
257257
// Port indicates the port used to reach the remote NTP server.
258258
//
259259
// DEPRECATED. Embed the port number in the query address string instead.

0 commit comments

Comments
 (0)