From ea875989ca0fafdfe595393ce3eead5469dec3b5 Mon Sep 17 00:00:00 2001 From: Youwen Zhu Date: Thu, 29 Feb 2024 16:02:51 -0800 Subject: [PATCH] retry buildable --- client/register.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/register.go b/client/register.go index aa77d32..2fedef3 100644 --- a/client/register.go +++ b/client/register.go @@ -7,6 +7,7 @@ import ( "reflect" "strconv" "time" + "github.com/pinterest/knox" ) func init() { @@ -58,7 +59,7 @@ func parseTimeout(val string) (time.Duration, error) { } func runRegister(cmd *Command, args []string) *ErrorStatus { - if reflect.TypeOf(cli).Name() == "UncachedHTTPClient" { + if _, ok := cli.(*knox.UncachedHTTPClient); ok { fmt.Println("Cannot Register in No Cache mode") return nil }