weibocom / motan-go

The golang implementation of Motan
Other
472 stars 112 forks source link

运行main/demo报错 #10

Closed cye1024 closed 6 years ago

cye1024 commented 6 years ago

我运行main/demo的client与server都报了这个错(master分支):

motan-go$ go run main/clientdemo.go
\# github.com/weibocom/motan-go/metrics
metrics/meter.go:48:52: cannot use m (type *meterSnapshot) as type metrics.Meter in return argument:
    *meterSnapshot does not implement metrics.Meter (missing Stop method)
metrics/meter.go:134:9: cannot use &snapshot (type *meterSnapshot) as type metrics.Meter in return argument:
    *meterSnapshot does not implement metrics.Meter (missing Stop method)
cye1024 commented 6 years ago

有没有更及时点的交流渠道呢?qq群、gitter什么的

rayzhang0603 commented 6 years ago

报这个错是因为rcrowley/go-metrics最新的master中增加了meter的方法,我们会尽快提交适配。 可以先在metrics/meter.go中给meterSnapshot增加Stop方法

func (m *meterSnapshot) Stop() {}