Closed i-coder-robot closed 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 报错如下
router/router.go:52:4: cannot use int(event.Route.Metric) (type int) as type int64 in field value
go版本1.13.4
由于go-micro版本比较低,当时是1.3.1, 后来删除了,重新来一次新版本1.6.0,就可以了
使用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