Changeset 682 in code for trunk/downstream.go


Ignore:
Timestamp:
Nov 9, 2021, 9:09:17 PM (4 years ago)
Author:
contact
Message:

Add a queue for WHO commands

This has the following upsides:

  • We can now routes WHO replies to the correct client, without broadcasting them to everybody.
  • We are less likely to hit server rate limits when multiple downstreams are issuing WHO commands at the same time.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/downstream.go

    r681 r682  
    18651865                }
    18661866
    1867                 uc.enqueueLIST(dc, msg)
     1867                uc.enqueueCommand(dc, msg)
    18681868        case "NAMES":
    18691869                if len(msg.Params) == 0 {
     
    19871987                }
    19881988
    1989                 uc.SendMessageLabeled(dc.id, &irc.Message{
     1989                uc.enqueueCommand(dc, &irc.Message{
    19901990                        Command: "WHO",
    19911991                        Params:  params,
Note: See TracChangeset for help on using the changeset viewer.