Skip to content

Commit

Permalink
socket fix hash count
Browse files Browse the repository at this point in the history
  • Loading branch information
simon300000 committed Mar 8, 2024
1 parent 5d03ea3 commit de435ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ const wsRouter = ({ socket }) => ([key, ...rest], map = []) => {
return result
},
devHashRank: () => Object
.entries(Object
.values(io.of('/').connected)
.entries([...(io.of('/').sockets.values())]
.map(s => metaMap.get(s))
.map(({ hash = 'undefined' }) => hash)
.reduce((hashs, hash) => {
Expand Down

0 comments on commit de435ec

Please sign in to comment.