amqp icon indicating copy to clipboard operation
amqp copied to clipboard

uuid.NewV4() returns 2 values instead of 1

Open 003random opened this issue 4 years ago • 1 comments

First of all, thanks for this great repo!

I noticed when trying to run one of the examples that an error will be thrown: ../../rpc/client.go:185:19: multiple-value uuid.NewV4() in single-value context

This seems to be due to an update on the github.com/satori/go.uuid package which made uuid.NewV4() return a possible error too instead of only a string.

Since the code in client.go uses: func newCorrId() string { return uuid.NewV4().String() } the .string() will not work anymore.

003random avatar Oct 25 '20 19:10 003random

Thank you for your feedback and sorry for the late answer. I created this repo just for fun when studying golang so I do not maintain it. Feel free to create PRs with any changes. Right now I'm pretty busy and don't have time to fix but I will do when having some time (maybe next week)

gavrilaf avatar Nov 03 '20 11:11 gavrilaf