]> 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)
commit020d9e6d71477f864f3c3456eb39288fca98216c
treeab232de1f9d8d0b7eb9ab5f5896a8e293354053f
parent438e814dd82db972992d4adf4bbb566aa01effb2
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]