The SDK version is incompatible?
Closed this issue · 3 comments
When I build fabric app, I got this error.
`
github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/core/operations
C:\Users\95762\go\pkg\mod\github.com\hyperledger\fabric-sdk-go@v1.0.0\internal\github.com\hyperledger\fabric\core\operations\system.go:225:23: not enough arguments in call to s.statsd.SendLoop
have (<-chan time.Time, string, string)
want (context.Context, <-chan time.Time, string, string)
`
When I build fabric app, I got this error. `
github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/core/operations
C:\Users\95762\go\pkg\mod\github.com\hyperledger\fabric-sdk-go@v1.0.0\internal\github.com\hyperledger\fabric\core\operations\system.go:225:23: not enough arguments in call to s.statsd.SendLoop have (<-chan time.Time, string, string) want (context.Context, <-chan time.Time, string, string) `
Hello, has this problem been solved?
I had the same issue. It is due to go-kit 0.9.0 using context. I made a local patch on fabric-sdk-go v1.0.0 in the file internal/github.com/hyperledger/fabric/core/operations/system/go by replacing go s.statsd.SendLoop(s.sendTicker.C, network, address) with go s.statsd.SendLoop(context.Background(), s.sendTicker.C, network, address).
Now it compiles again, even with go-kit v0.9.0. I did not run the test suite on the fabric-sdk-go. I just run my test suites on my apps that worked fine,
Of course, I updated the go mod to go-kit v0.9.0.
When I build fabric app, I got this error. `
github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/core/operations
C:\Users\95762\go\pkg\mod\github.com\hyperledger\fabric-sdk-go@v1.0.0\internal\github.com\hyperledger\fabric\core\operations\system.go:225:23: not enough arguments in call to s.statsd.SendLoop have (<-chan time.Time, string, string) want (context.Context, <-chan time.Time, string, string) `
Hello, has this problem been solved?
Yes, clear the compilation environment, and recompile.The problem has been solved.