Speed up copy_and_replace

pull/4/merge
Erik Johnston 8 years ago
parent 0834d1a70c
commit 27b1b4a2c9
  1. 4
      synapse/types.py

@ -216,9 +216,7 @@ class StreamToken(
return self
def copy_and_replace(self, key, new_value):
d = self._asdict()
d[key] = new_value
return StreamToken(**d)
return self._replace(**{key: new_value})
StreamToken.START = StreamToken(

Loading…
Cancel
Save