stack-labs / questions

任何关于Micro的问题都可以在Issue中创建
27 stars 6 forks source link

使用etcd重新编译api报错 #22

Closed i-coder-robot closed 4 years ago

i-coder-robot commented 4 years ago

使用https://github.com/micro-in-cn/tutorials/tree/master/examples/basic-practices/micro-registry/etcdv3

etcd

go build -o mainWithEtcdv3 main.go plugins.go 报错如下

github.com/micro/micro/router

router/router.go:52:4: cannot use int(event.Route.Metric) (type int) as type int64 in field value

i-coder-robot commented 4 years ago

go版本1.13.4

i-coder-robot commented 4 years ago

由于go-micro版本比较低,当时是1.3.1, 后来删除了,重新来一次新版本1.6.0,就可以了