Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot use uint32(timeout.Seconds()) #2106

Closed
jiangtao6888 opened this issue Nov 4, 2022 · 1 comment
Closed

cannot use uint32(timeout.Seconds()) #2106

jiangtao6888 opened this issue Nov 4, 2022 · 1 comment

Comments

@jiangtao6888
Copy link

报错信息:
dubbo.apache.org/dubbo-go/v3/protocol/dubbo3
../../../repository/pkg/mod/dubbo.apache.org/dubbo-go/v3@v3.0.2/protocol/dubbo3/dubbo3_invoker.go:79:31: cannot use uint32(timeout.Seconds()) (value of type uint32) as type time.Duration in argument to triConfig.WithClientTimeout

版本信息:
go 1.19.3 版本 dubbo-go 3.0.2 版本 macOS 12.6.1 Intel

编译报错:

部分代码:
type OrderService struct {
*facade.OrderFacadeClientImpl
}

func (o *OrderService) GetOrder(orderId int64) string {
orderRequest := &request.OrderRequest{
Id: orderId,
}
resp, err := o.GetOrderById(context.Background(), orderRequest)
if err != nil {
fmt.Printf("customerEcho :%+v \n", err)
}
fmt.Printf("response : %+v", resp)
res, _ := json.Marshal(resp)
return string(res)
}

syntax = "proto3";

package service;

import "request.proto";
import "response.proto";

option go_package = "echo/facade";

option java_multiple_files = true;
option java_package = "org.knight.facade.service";

service OrderFacade {
rpc GetOrderById (request.OrderRequest) returns (response.OrderResponse) {}
}

@AlexStocks
Copy link
Contributor

#2086 重复,可以看下,我们已经提交了相关 pr。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants