v.io/x/ref/lib/raft: fix a rare context.CancelFunc leak

We're fixing leaks of context.CancelFunc closures,
which the spec demands must be called.

This change fixes a rare path in raft.Stop(), which failed to
call the CancelFunc if the raft instance had never been started
after creation.

Change-Id: I1c9e99029cc2007f11f5b42b6ba0bc76cb8d3bea
1 file changed
tree: 453b37096bfcd5f96a56de942129e79ce9ab88c0
  1. cmd/
  2. examples/
  3. internal/
  4. lib/
  5. runtime/
  6. services/
  7. test/
  8. .gitignore
  9. AUTHORS
  10. CONTRIBUTING.md
  11. CONTRIBUTORS
  12. envvar.go
  13. envvar_test.go
  14. LICENSE
  15. PATENTS
  16. README.md
  17. VERSION
README.md

Vanadium

This repository contains a reference implementation of the Vanadium APIs.

Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.