1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: turn the pointer map notice into a warning and fix all code using it

This commit is contained in:
Alexander Medvednikov
2023-01-15 22:19:16 +01:00
parent e8108f21e0
commit aba7bcde85
5 changed files with 19 additions and 14 deletions

View File

@ -38,7 +38,7 @@ fn start_server() ! {
slog('s.on_message_ref')
// for _, cli in m.clients {
for i, _ in m.clients {
mut c := m.clients[i]
mut c := m.clients[i] or { continue }
if c.client.state == .open && c.client.id != ws.id {
c.client.write(msg.payload, websocket.OPCode.text_frame) or { panic(err) }
}