Skip to content

Commit da5abd3

Browse files
committed
gopls/internal/lsp/cache: fix use of time.NewTimer instead of NewTicker
Another facepalm. Discovered during manual testing of the prerelease. Change-Id: I5fdb173a68ad8659d773259bcc737b4f708d23ab Reviewed-on: https://go-review.googlesource.com/c/tools/+/512957 gopls-CI: kokoro <[email protected]> Reviewed-by: Alan Donovan <[email protected]> Run-TryBot: Robert Findley <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent b389785 commit da5abd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gopls/internal/lsp/cache/parse_cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ func (c *parseCache) startParse(mode parser.Mode, purgeFuncBodies bool, fhs ...s
254254

255255
func (c *parseCache) gc() {
256256
const period = 10 * time.Second // gc period
257-
timer := time.NewTimer(period)
257+
timer := time.NewTicker(period)
258258
defer timer.Stop()
259259

260260
for {

0 commit comments

Comments
 (0)