Skip to content

Commit 3c12860

Browse files
authored
Merge pull request #10 from faiscadev/refactor/binary-admin-encoding
refactor: switch admin ops from protobuf to binary encoding
2 parents 6d3fd37 + 1f60ea5 commit 3c12860

16 files changed

Lines changed: 17 additions & 1658 deletions

‎fila/fibp.py‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
Hot path (binary body):
2020
0x01 ENQUEUE, 0x02 CONSUME, 0x03 ACK, 0x04 NACK
2121
22-
Admin (protobuf body):
22+
Admin (binary body):
2323
0x10 CREATE_QUEUE, 0x11 DELETE_QUEUE, 0x12 QUEUE_STATS,
2424
0x13 LIST_QUEUES, 0x14 REDRIVE, 0x15 CONFIG_SET, 0x16 CONFIG_GET, 0x17 CONFIG_LIST
2525
@@ -186,11 +186,6 @@ def encode_auth(corr_id: int, api_key: str) -> bytes:
186186
return _encode_frame(0, OP_AUTH, corr_id, api_key.encode())
187187

188188

189-
def encode_admin(op: int, corr_id: int, proto_body: bytes) -> bytes:
190-
"""Encode an admin frame with a protobuf-serialised body."""
191-
return _encode_frame(0, op, corr_id, proto_body)
192-
193-
194189
# ------------------------------------------------------------------
195190
# Decoding helpers
196191
# ------------------------------------------------------------------

‎fila/v1/__init__.py‎

Whitespace-only changes.

‎fila/v1/admin_pb2.py‎

Lines changed: 0 additions & 78 deletions
This file was deleted.

‎fila/v1/admin_pb2.pyi‎

Lines changed: 0 additions & 179 deletions
This file was deleted.

0 commit comments

Comments
 (0)