• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dgraph-io / ristretto / 6055945993
74%

Build:
DEFAULT BRANCH: main
Ran 02 Sep 2023 02:52AM UTC
Jobs 1
Files 23
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

01 Sep 2023 06:05AM UTC coverage: 73.357% (-0.4%) from 73.707%
6055945993

push

github

web-flow
stop cleanupTicker while closing cache (#343)

## Problem
`cleanupTicker `that is created in `NewCache` is never stopped, which is
why the code below causes a memory leak

```go
for {
	c, _ := NewCache(...)
	c.Close()
}
```

## Solution
Stop `cleanupTicker` in `Close` method

2233 of 3044 relevant lines covered (73.36%)

2484646.14 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
3
97.62
0.0% policy.go
33
50.0
-9.72% z/z.go
34
91.07
-0.28% cache.go
Jobs
ID Job ID Ran Files Coverage
1 6055945993.1 02 Sep 2023 02:52AM UTC 23
73.36
GitHub Action Run
Source Files on build 6055945993
  • Tree
  • List 23
  • Changed 11
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 91446626 on github
  • Prev Build on main (#6044253271)
  • Next Build on main (#6070857905)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc