Skip to content

Commit faa6e9e

Browse files
committed
Correctly adding client instances to the client map
1 parent 5fd5f08 commit faa6e9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/webircgateway/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ func NewClient(gateway *Gateway) *Client {
115115
// Add to the clients maps and wait until everything has been marked
116116
// as completed (several routines add themselves to EndWG so that we can catch
117117
// when they are all completed)
118-
gateway.Clients.Set(string(c.Id), c)
118+
gateway.Clients.Set(strconv.FormatUint(c.Id, 10), c)
119119
go func() {
120120
c.EndWG.Wait()
121-
gateway.Clients.Remove(string(c.Id))
121+
gateway.Clients.Remove(strconv.FormatUint(c.Id, 10))
122122

123123
hook := &HookClientState{
124124
Client: c,

0 commit comments

Comments
 (0)