diff options
author | James Lu <james@overdrivenetworks.com> | 2020-06-24 14:57:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-24 23:57:37 +0200 |
commit | 37f7caf7f398bfab7acffe3e0dda443ed2ca041d (patch) | |
tree | fe7224e0bbc2acd8a3f1542753365c85fc51f564 | |
parent | 5847f7758ce0e9fbad53766efe495d7ba15adae4 (diff) | |
download | matterbridge-msglm-37f7caf7f398bfab7acffe3e0dda443ed2ca041d.tar.gz matterbridge-msglm-37f7caf7f398bfab7acffe3e0dda443ed2ca041d.tar.bz2 matterbridge-msglm-37f7caf7f398bfab7acffe3e0dda443ed2ca041d.zip |
Skip gIRC built-in rate limiting (irc) (#1164)
By default, gIRC rate limits all outgoing messages.
Since matterbridge already implements message throttling, this is extra layer of throttling is not necessary.
-rw-r--r-- | bridge/irc/irc.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index 6e97996f..6db062ce 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -250,6 +250,8 @@ func (b *Birc) getClient() (*girc.Client, error) { SSL: b.GetBool("UseTLS"), TLSConfig: &tls.Config{InsecureSkipVerify: b.GetBool("SkipTLSVerify"), ServerName: server}, //nolint:gosec PingDelay: time.Minute, + // skip gIRC internal rate limiting, since we have our own throttling + AllowFlood: true, }) return i, nil } |