]> go.fuhry.dev Git - runtime.git/commit
Genericize "option" interface
authorDan Fuhry <dan@fuhry.com>
Wed, 19 Nov 2025 21:36:13 +0000 (16:36 -0500)
committerDan Fuhry <dan@fuhry.com>
Wed, 19 Nov 2025 21:45:46 +0000 (16:45 -0500)
commit4fe780977e4fafc4f6fbeaf787171fe0cf999d67
tree958bb0abe450f176da5fdc7cc605359cadf7b573
parent0ac0c9be7c9b0ded37fb75cb48f6c7136f60c8a5
Genericize "option" interface

"Option" variadic pattern has been used in lots of things lately - grpc client and server, ephs, etc. Although the implementation is trivial, the repetition was becoming obnoxious.

Other trivial fixes:
- Fixed sd watcher wait group never calling Done if etcd client context is canceled
- Fixed etcd_factory type declaration
12 files changed:
ephs/BUILD.bazel
ephs/client.go
ephs/servicer/BUILD.bazel
ephs/servicer/servicer.go
grpc/internal/client/BUILD.bazel
grpc/internal/client/client.go
grpc/internal/server/BUILD.bazel
grpc/internal/server/server.go
sd/etcd_factory.go
sd/watcher.go
utils/option/BUILD.bazel [new file with mode: 0644]
utils/option/option.go [new file with mode: 0644]