Skip to content
Snippets Groups Projects
Commit 610accbb authored by Erik Johnston's avatar Erik Johnston
Browse files

Fix replication after switch to simplejson

Turns out that simplejson serialises namedtuple's as dictionaries rather
than tuples by default.
parent 3f961e63
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,7 @@ class RdataCommand(Command):
return " ".join((
self.stream_name,
str(self.token) if self.token is not None else "batch",
json.dumps(self.row),
json.dumps(self.row, namedtuple_as_object=False),
))
......@@ -301,7 +301,9 @@ class InvalidateCacheCommand(Command):
return cls(cache_func, json.loads(keys_json))
def to_line(self):
return " ".join((self.cache_func, json.dumps(self.keys)))
return " ".join((
self.cache_func, json.dumps(self.keys, namedtuple_as_object=False)
))
class UserIpCommand(Command):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment