blog icon indicating copy to clipboard operation
blog copied to clipboard

个人博客

Results 12 blog issues
Sort by recently updated
recently updated
newest added

如果pulsar server和consumer网络断链,那没有acktimeout回如何处理呢。

.\..\..\pkg\mod\github.com\micro\[email protected]\server\server.go:51:6: invalid receiver type Server (Server is an interface type) 如果是版本问题,请问需要做那些改变了?

博客访问不了了...

在我的机器上运行,我的客户端接收不到返回值。 经过排查后发现,是服务器该端代码导致的 `resp = &pb.Response{Created: true, Consignment: consignment}` 局部指针赋值给参数指针,在go函数返回的时候,参数指针所指向的地址会变为原地址(即传入时所指向的地址),由此引发局部指针的复制丢失。客户端收到的返回值永远都是一个内容为空的Response结构体指针。 所以只能改为 `resp.Created = true` `resp.Consignment = consignment` 这样赋值,才会运行正常

大侠指教一下,我在docker中运行服务报错,原因不明: 当使用MICRO_REGISTRY:mdns时,docker-compose run consignment-service 提示:2018/12/26 03:04:45 failed to serve: Failed to join multicast group on all interfaces! 当使用默认的consul时(consul已在docker中运行,通过http://localhost:8500都能访问到界面 ),提示:2018/12/26 03:09:56 failed to serve: Put http://127.0.0.1:8500/v1/agent/service/register: dial tcp 127.0.0.1:8500: connect: connection...

vendor\google.golang.org\grpc\status\status.go:155:21: cannot use any (type *"peace/vendor/google.golang.org/grpc/vendor/github.com/golang/protobuf/ptypes/any".Any) as type *"github.com/golang/protobuf/ptypes/any".Any in append vendor\google.golang.org\grpc\status\status.go:169:32: cannot use any (type *"github.com/golang/protobuf/ptypes/any".Any) as type *"peace/vendor/google.golang.org/grpc/vendor/github.com/golang/protobuf/ptypes/any".Any in argument to ptypes.UnmarshalAny 这什么鬼问题啊。

microservices-part-3-docker-compose-and-mongodb-with-orm.md 该文档中 **mgo 库的 Copy() 与 Clone()**章节中session.Clonse() 拼写错误。