Make the example command buildable on macOS

Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
This commit is contained in:
Kazuyoshi Kato
2021-05-21 17:12:43 -07:00
parent 616d54c531
commit 236899069c
3 changed files with 49 additions and 1 deletions

View File

@@ -73,7 +73,7 @@ func dumpMetadata(ctx context.Context) {
func server() error {
s, err := ttrpc.NewServer(
ttrpc.WithServerHandshaker(ttrpc.UnixSocketRequireSameUser()),
ttrpc.WithServerHandshaker(defaultHandshaker()),
ttrpc.WithUnaryServerInterceptor(serverIntercept),
)
if err != nil {