Browse Source

for redis write speed

stanley-king 2 years ago
parent
commit
e4293f4631
2 changed files with 3 additions and 1 deletions
  1. 1 1
      plot/refill/WriterConsumer.py
  2. 2 0
      test/TestRefillMonitor.php

+ 1 - 1
plot/refill/WriterConsumer.py

@@ -59,7 +59,7 @@ class WriterConsumer(Thread):
 
     def put(self, method, params):
         if self._stopped == False:
-            self._messages.append((method, params))
+            self._messages.appendleft((method, params))
 
     def quit(self):
         log.debug("%s thread has quit", self._name)

+ 2 - 0
test/TestRefillMonitor.php

@@ -58,6 +58,8 @@ class TestRefillMonitor extends TestCase
         }
     }
 
+//docker-compose run phpcli php /var/www/html/phpunit-9.2.5.phar --filter "/(TestRefillMonitor::testPushEqualMsg)( .*)?$/" --test-suffix TestRefillMonitor.php /var/www/html/test
+
     public function testPushEqualMsg()
     {
         $time = strtotime("2022-07-29");