fixup! Update the document of Machine-Readable Status

The key has to be of byte type in Python, not str.
This commit is contained in:
Xiaoge Su 2024-04-03 13:20:52 -07:00
parent a6e543b5c7
commit 5b587d3c61
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ You can access machine-readable status in three ways ways:
* From any client, read the key ``\xFF\xFF/status/json``. The value of this key is a JSON object serialized to a byte string with UTF-8 encoding. In Python, given an open database ``db``, the JSON object can be read and deserialized with::
import json
status = json.loads(db['\xff\xff/status/json'])
status = json.loads(db[b'\xff\xff/status/json'])
Guidance regarding versioning
=============================
@ -144,4 +144,4 @@ Name Description
count How many tags are throttled
busy_read How many tags are throttled because of busy read
busy_write How many tags are throttled because of busy write
=================================== ====================================================
=================================== ====================================================