Add introspection functions

This commit is contained in:
2022-05-07 14:59:04 -07:00
parent ff5f211a83
commit f609d5a97f
5 changed files with 133 additions and 30 deletions

View File

@@ -177,7 +177,7 @@ func (c *Client) Call(ctx context.Context, rcvr, method string, arg interface{},
}
}
}()
} else {
} else if resp.Type == types.ResponseTypeNormal {
// IF return value is not a pointer, return error
if retVal.Kind() != reflect.Ptr {
return ErrReturnNotPointer