Skip to content

Commit 2d4022e

Browse files
committed
fsthttp: fix comment for CandidateResponse.SetStaleIfError()
1 parent df886c4 commit 2d4022e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fsthttp/cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ func (candidateResponse *CandidateResponse) StaleWhileRevalidate() (uint32, erro
421421
return opts.staleRevalidate, nil
422422
}
423423

424-
// SetStaleWhileRevalidate sets the time in seconds for which a cached item can be delivered stale if synchronous revalidation produces an error.
424+
// SetStaleIfError sets the time in seconds for which a cached item can be delivered stale if synchronous revalidation produces an error.
425425
func (candidateResponse *CandidateResponse) SetStaleIfError(sie uint32) {
426426
candidateResponse.overrideStaleIfError = sie
427427
candidateResponse.useSIE = true

0 commit comments

Comments
 (0)