summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-01-18 11:02:43 +0000
committerErik Johnston <erik@matrix.org>2018-01-18 11:02:43 +0000
commita177325b49be4793c8ed21147f8d301a0649a2b6 (patch)
treeb17c599b0a0c716e7c50161378912e227f5c20e2 /synapse
parentAdd decent impl of a FileConsumer (diff)
downloadsynapse-a177325b49be4793c8ed21147f8d301a0649a2b6.tar.xz
Fix comments
Diffstat (limited to 'synapse')
-rw-r--r--synapse/util/file_consumer.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/util/file_consumer.py b/synapse/util/file_consumer.py
index de478fcb3e..5284c7967e 100644
--- a/synapse/util/file_consumer.py
+++ b/synapse/util/file_consumer.py
@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-# Copyright 2018 New Vecotr Ltd
+# Copyright 2018 New Vector Ltd
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -58,7 +58,7 @@ class BackgroundFileConsumer(object):
         self._notify_empty_deferred = None
 
     def registerProducer(self, producer, streaming):
-        """Part of IProducer interface
+        """Part of IConsumer interface
 
         Args:
             producer (IProducer)
@@ -91,7 +91,7 @@ class BackgroundFileConsumer(object):
 
         self.bytes_queue.put_nowait(bytes)
 
-        # If this is a pushed based consumer and the queue is getting behind
+        # If this is a PushProducer and the queue is getting behind
         # then we pause the producer.
         if self.streaming and self.bytes_queue.qsize() >= self._PAUSE_ON_QUEUE_SIZE:
             self.paused_producer = True