Refactor and improve code consistency across multiple files
- Enhanced SQL queries in `session.go` and `share.go` for clarity and consistency. - Updated comments for better understanding and maintenance. - Ensured consistent error handling and return statements across various methods.
This commit is contained in:
@@ -48,10 +48,10 @@ func (wsh *WebSocketHandler) HandleWebSocketLoadTest(c *gin.Context) {
|
||||
clientID := uuid.New().String()
|
||||
client := hub.NewClient(
|
||||
clientID,
|
||||
nil, // userID - nil for anonymous
|
||||
userName, // userName
|
||||
nil, // userAvatar
|
||||
"edit", // permission - full access for load testing
|
||||
nil, // userID - nil for anonymous
|
||||
userName, // userName
|
||||
nil, // userAvatar
|
||||
"edit", // permission - full access for load testing
|
||||
conn,
|
||||
wsh.hub,
|
||||
roomID,
|
||||
|
||||
Reference in New Issue
Block a user