Skip to content

Commit dce89ea

Browse files
committed
s/getDeadlineTime/deadlineTime
1 parent 452a20e commit dce89ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

handlers.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func (a AppHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
128128
}
129129

130130
// impose a deadline on this onward request.
131-
ctx, cancel := context.WithDeadline(logCtx, getDeadlineTime(a.Info))
131+
ctx, cancel := context.WithDeadline(logCtx, deadlineTime(a.Info))
132132
defer cancel()
133133

134134
var err error
@@ -413,8 +413,8 @@ func getRoots(_ context.Context, li *logInfo, w http.ResponseWriter, _ *http.Req
413413
return http.StatusOK, nil
414414
}
415415

416-
// getDeadlineTime calculates the future time an RPC should expire based on our config
417-
func getDeadlineTime(li *logInfo) time.Time {
416+
// deadlineTime calculates the future time an RPC should expire based on our config
417+
func deadlineTime(li *logInfo) time.Time {
418418
return li.TimeSource.Now().Add(li.instanceOpts.Deadline)
419419
}
420420

0 commit comments

Comments
 (0)