Skip to content

Commit fa81eab

Browse files
committed
ntp: Fix a bad context usage
1 parent 4498e57 commit fa81eab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

common/ntp/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func (s *Service) update() error {
141141
if s.timeout > 0 {
142142
ctx, cancel = context.WithTimeout(ctx, s.timeout)
143143
}
144-
response, err := Exchange(s.ctx, s.dialer, s.server)
144+
response, err := Exchange(ctx, s.dialer, s.server)
145145
if cancel != nil {
146146
cancel()
147147
}

0 commit comments

Comments
 (0)