diff options
author | Adrian Tschira <nota@notafile.com> | 2018-05-29 17:42:43 +0200 |
---|---|---|
committer | Adrian Tschira <nota@notafile.com> | 2018-05-29 17:42:43 +0200 |
commit | 4b9d0cde97495cee16f650f7625c89339a24230c (patch) | |
tree | 13d7cc15e40f0d3c94223f7f0ea9d350b49f9b0f /synapse/storage/keys.py | |
parent | use memoryview in py3 (diff) | |
download | synapse-4b9d0cde97495cee16f650f7625c89339a24230c.tar.xz |
add remaining memoryview changes
Diffstat (limited to 'synapse/storage/keys.py')
-rw-r--r-- | synapse/storage/keys.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/storage/keys.py b/synapse/storage/keys.py index e56c464852..0f13b61da8 100644 --- a/synapse/storage/keys.py +++ b/synapse/storage/keys.py @@ -80,7 +80,7 @@ class KeyStore(SQLBaseStore): values={ "from_server": from_server, "ts_added_ms": time_now_ms, - "tls_certificate": buffer(tls_certificate_bytes), + "tls_certificate": db_binary_type(tls_certificate_bytes), }, desc="store_server_certificate", ) @@ -143,7 +143,7 @@ class KeyStore(SQLBaseStore): values={ "from_server": from_server, "ts_added_ms": time_now_ms, - "verify_key": buffer(verify_key.encode()), + "verify_key": db_binary_type(verify_key.encode()), }, ) txn.call_after( @@ -180,7 +180,7 @@ class KeyStore(SQLBaseStore): "from_server": from_server, "ts_added_ms": ts_now_ms, "ts_valid_until_ms": ts_expires_ms, - "key_json": buffer(key_json_bytes), + "key_json": db_binary_type(key_json_bytes), }, desc="store_server_keys_json", ) |