syncbase/vsync: closing discovery channel

Fix a bug in the neighborhood peer-discovery scanner.  When the context
is cancelled during Syncbase shutdown, the discovery channel is closed.
Detect that and terminate the neighborhood scan.  Also prioritize the
detection of the sync channel closing, as done in other sync threads.

Change-Id: I57af0952e5bf8296fce5a8d5351b6c289f2a3ddb
1 file changed
tree: 2ebca2fb19b6bdba351a1519e45c9459797a35ca
  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.