discovery: return error for duplicated advertisements.

  When advertising the same service instances (i.e., w/ the same
  instance uuid) multiple times, the behavior is undefined now.
  This CL changes it to return an explicit error in that case.

  If a user wants to update the service, the previous advertisement
  should be canceled first and then the user should start a new
  advertisement with a new service info.

MultiPart: 2/2
Change-Id: I775b8d9b8288e75a2ea9c0a74f9b9c1a3a803f1c
4 files changed
tree: 196878201b39f0a80e7978b3efac8a127b7173aa
  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.