Skip to content

fix memory leak: do not throw away cancel func on keep alive #18

fix memory leak: do not throw away cancel func on keep alive

fix memory leak: do not throw away cancel func on keep alive #18

Workflow file for this run

name: Go
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
- name: Test
run: go test -v -timeout=60s -coverprofile=coverage.txt -covermode=atomic ./...
- name: Test (race)
run: go test -v -timeout=60s -race ./...
- name: Coverage
uses: codecov/codecov-action@v3