Changeset 757 in code for trunk/service.go


Ignore:
Timestamp:
Dec 8, 2021, 5:03:40 PM (4 years ago)
Author:
contact
Message:

Add context to {conn,upstreamConn}.SendMessage

This avoids blocking on upstream message rate limiting for too
long.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/service.go

    r755 r757  
    617617                return fmt.Errorf("failed to parse command %q: %v", params[1], err)
    618618        }
    619         uc.SendMessage(m)
     619        uc.SendMessage(ctx, m)
    620620
    621621        sendServicePRIVMSG(dc, fmt.Sprintf("sent command to %q", net.GetName()))
Note: See TracChangeset for help on using the changeset viewer.