Skip to content

Commit

Permalink
feat: optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
zjwshisb committed Jan 22, 2025

Verified

This commit was signed with the committer’s verified signature.
RedL0tus Jiangjin Wang
1 parent 4503e25 commit f5e4c0a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/logic/chat/client.go
Original file line number Diff line number Diff line change
@@ -211,8 +211,11 @@ func (c *client) readMsg() {
}
msg.CustomerId = c.getCustomerId()
msg.ReceivedAt = gtime.Now()
c.manager.handleMessage(ctx, c, msg)
go func() {
c.manager.handleMessage(ctx, c, msg)
}()
c.lastActive = gtime.Now()

}
}
}

0 comments on commit f5e4c0a

Please sign in to comment.