From e686d6ac85355108f3f1a18124bf1cb619cb5d4e Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Wed, 4 Jan 2017 03:01:19 +0100 Subject: [PATCH] Okay this is too slow --- Backend/CommsTransmitter.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Backend/CommsTransmitter.cs b/Backend/CommsTransmitter.cs index 946495af..7b679231 100644 --- a/Backend/CommsTransmitter.cs +++ b/Backend/CommsTransmitter.cs @@ -61,7 +61,9 @@ namespace Swarmops.Backend ICommsTransmitter transmitter = new CommsTransmitterMail(); - OutboundCommRecipients recipients = comm.GetRecipientBatch(100); + const int batchSize = 1000; + + OutboundCommRecipients recipients = comm.GetRecipientBatch(batchSize); PayloadEnvelope envelope = PayloadEnvelope.FromXml (comm.PayloadXml); BotLog.Write(2, "CommsTx", "--transmitting to " + recipients.Count.ToString("N0") + " recipients"); @@ -79,7 +81,7 @@ namespace Swarmops.Backend } } - if (recipients.Count < 100) // Was this the last batch? + if (recipients.Count < batchSize) // Was this the last batch? { comm.Open = false;