Skip to content

Commit 8942db6

Browse files
code-health: use hexadecimal codes for requests
Modern Tarantool documentation uses hexadecimal codes for request codes [1]. 1. https://www.tarantool.io/en/doc/latest/dev_guide/internals/box_protocol/ Part of #206
1 parent f96c11d commit 8942db6

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

Diff for: tarantool/const.py

+15-15
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,21 @@
3939
IPROTO_GREETING_SIZE = 128
4040
IPROTO_BODY_MAX_LEN = 2147483648
4141

42-
REQUEST_TYPE_OK = 0
43-
REQUEST_TYPE_SELECT = 1
44-
REQUEST_TYPE_INSERT = 2
45-
REQUEST_TYPE_REPLACE = 3
46-
REQUEST_TYPE_UPDATE = 4
47-
REQUEST_TYPE_DELETE = 5
48-
REQUEST_TYPE_CALL16 = 6
49-
REQUEST_TYPE_AUTHENTICATE = 7
50-
REQUEST_TYPE_EVAL = 8
51-
REQUEST_TYPE_UPSERT = 9
52-
REQUEST_TYPE_CALL = 10
53-
REQUEST_TYPE_EXECUTE = 11
54-
REQUEST_TYPE_PING = 64
55-
REQUEST_TYPE_JOIN = 65
56-
REQUEST_TYPE_SUBSCRIBE = 66
42+
REQUEST_TYPE_OK = 0x00
43+
REQUEST_TYPE_SELECT = 0x01
44+
REQUEST_TYPE_INSERT = 0x02
45+
REQUEST_TYPE_REPLACE = 0x03
46+
REQUEST_TYPE_UPDATE = 0x04
47+
REQUEST_TYPE_DELETE = 0x05
48+
REQUEST_TYPE_CALL16 = 0x06
49+
REQUEST_TYPE_AUTHENTICATE = 0x07
50+
REQUEST_TYPE_EVAL = 0x08
51+
REQUEST_TYPE_UPSERT = 0x09
52+
REQUEST_TYPE_CALL = 0x0a
53+
REQUEST_TYPE_EXECUTE = 0x0b
54+
REQUEST_TYPE_PING = 0x40
55+
REQUEST_TYPE_JOIN = 0x41
56+
REQUEST_TYPE_SUBSCRIBE = 0x42
5757
REQUEST_TYPE_ERROR = 1 << 15
5858

5959
SPACE_SCHEMA = 272

0 commit comments

Comments
 (0)