-
Notifications
You must be signed in to change notification settings - Fork 843
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work, pls resolve some comments
See updated 👍 |
@@ -115,15 +119,10 @@ func newRedisBroadcast(nsp string, adapter *RedisAdapterOptions) (*redisBroadcas | |||
return nil, err | |||
} | |||
sub, err := redis.Dial("tcp", redisAddr) | |||
if err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are you delete error check?
bc.pub = redis.PubSubConn{Conn: pub} | ||
bc.sub = redis.PubSubConn{Conn: sub} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need this space :(
@@ -89,6 +89,10 @@ type allRoomResponse struct { | |||
Rooms []string | |||
} | |||
|
|||
func genUUID() string{ | |||
return uuid.Must(uuid.NewV4()).String() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
version uuid - https://github.com/googollee/go-socket.io/blob/master/go.mod#L9
not correct usage uuid.Must
compile error by v1.2.0
have (uuid.UUID)
want (uuid.UUID, error)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need download mod uuid by hash commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works fine. It will never throw an error. Must will make it panic instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use this command at main go-socket.io directory.
go get github.com/satori/go.uuid@b2ce2384e17bbe0c6d34077efa39dbab3e09123b
Thanks for help, but it does nit actually :( |
Fix for the error
error multiple-value uuid.NewV4() in single-value context.
Replaced
uuid.NewV4().String()
withuuid.Must(uuid.NewV4()).String()