Skip to content

Commit

Permalink
Merge pull request python-diamond#191 from bunjiboys/pickle-send-fix
Browse files Browse the repository at this point in the history
Fix for bad usage of _send in graphitepickle.py
  • Loading branch information
kormoc committed Dec 5, 2012
2 parents aff4296 + 7b30014 commit b32e372
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/diamond/handler/graphitepickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ def process(self, metric):
self.log.debug("GraphitePickleHandler: Sending batch size: %d",
self.batch_size)
# Pickle the batch of metrics
data = self._pickle_batch()
self.metrics = [ self._pickle_batch() ]
# Send pickled batch
self._send(data)
self._send()
# Clear Batch
self.batch = []

Expand Down

0 comments on commit b32e372

Please sign in to comment.