diff --git a/cmd/tusd/cli/hooks.go b/cmd/tusd/cli/hooks.go index 4af68925..7ec97fb2 100644 --- a/cmd/tusd/cli/hooks.go +++ b/cmd/tusd/cli/hooks.go @@ -31,13 +31,13 @@ func getHookHandler(config *handler.Config) hooks.HookHandler { stdout.Printf("Using '%s' as the endpoint for gRPC hooks", Flags.GrpcHooksEndpoint) return &grpc.GrpcHook{ - Endpoint: Flags.GrpcHooksEndpoint, - MaxRetries: Flags.GrpcHooksRetry, - Backoff: Flags.GrpcHooksBackoff, - Secure: Flags.GrpcHooksSecure, - ServerTLSCertificateFilePath: Flags.GrpcHooksServerTLSCertFile, - ClientTLSCertificateFilePath: Flags.GrpcHooksClientTLSCertFile, - ClientTLSCertificateKeyFilePath: Flags.GrpcHooksClientTLSKeyFile, + Endpoint: Flags.GrpcHooksEndpoint, + MaxRetries: Flags.GrpcHooksRetry, + Backoff: Flags.GrpcHooksBackoff, + Secure: Flags.GrpcHooksSecure, + ServerTLSCertificateFilePath: Flags.GrpcHooksServerTLSCertFile, + ClientTLSCertificateFilePath: Flags.GrpcHooksClientTLSCertFile, + ClientTLSCertificateKeyFilePath: Flags.GrpcHooksClientTLSKeyFile, } } else if Flags.PluginHookPath != "" { stdout.Printf("Using '%s' to load plugin for hooks", Flags.PluginHookPath) diff --git a/pkg/hooks/grpc/grpc.go b/pkg/hooks/grpc/grpc.go index 02b0f843..f2d6801b 100644 --- a/pkg/hooks/grpc/grpc.go +++ b/pkg/hooks/grpc/grpc.go @@ -18,7 +18,6 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/credentials" "google.golang.org/grpc/credentials/insecure" - "google.golang.org/grpc/metadata" ) type GrpcHook struct {