From 18b5523de21e59605524571990697520acfeb770 Mon Sep 17 00:00:00 2001 From: Harri Lainio Date: Mon, 8 Apr 2024 12:03:48 +0300 Subject: [PATCH] assert for error detection --- rpc/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rpc/client.go b/rpc/client.go index 882f210..6d551ca 100644 --- a/rpc/client.go +++ b/rpc/client.go @@ -9,6 +9,7 @@ import ( "github.com/findy-network/findy-common-go/jwt" "github.com/golang/glog" "github.com/lainio/err2" + "github.com/lainio/err2/assert" "github.com/lainio/err2/try" "golang.org/x/oauth2" "google.golang.org/grpc" @@ -72,6 +73,7 @@ func ClientConn(cfg ClientCfg) (conn *grpc.ClientConn, err error) { glog.V(3).Infoln("insecure gRPC call") default: glog.Warning("PKI nor Insecure not set") + assert.NotImplemented() } if cfg.Opts != nil {