Skip to content

Commit aa82e75

Browse files
Updated interface to any type
1 parent c243669 commit aa82e75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/session/stream_user.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func (m *Manager) sendCurrentSession(conn *websocket.Conn, sessionID string) err
2626
if err == redis.Nil {
2727
message := StreamMessage{
2828
Type: "session_state",
29-
Data: map[string]interface{}{
29+
Data: map[string]any{
3030
"session_id": sessionID,
3131
"exists": false,
3232
},
@@ -42,7 +42,7 @@ func (m *Manager) sendCurrentSession(conn *websocket.Conn, sessionID string) err
4242
session := convertRedisHashToSession(sessionData)
4343
message := StreamMessage{
4444
Type: "session_state",
45-
Data: map[string]interface{}{
45+
Data: map[string]any{
4646
"session_id": sessionID,
4747
"exists": true,
4848
"session": session,
@@ -118,7 +118,7 @@ func (m *Manager) handleSessionChangeEvent(conn *websocket.Conn, sessionID strin
118118
/* ==== User Transaction List ==== */
119119

120120
/* send current user transactions */
121-
func (m *Manager) sendCurrentUserTransactions(conn *websocket.Conn, username, sessionID string, limit int) error {
121+
func (m *Manager) sendCurrentUserTransactions(conn *websocket.Conn, sessionID string, limit int) error {
122122
ctx := context.Background()
123123

124124
/* get latest transactions from Redis */

0 commit comments

Comments
 (0)