Skip to content

Commit 023d35f

Browse files
committed
Fix unused variable warnings in struct.unpack_from
1 parent 035ec93 commit 023d35f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkgs/nixkube/src/nri/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ async def _register_plugin(
667667
buf.extend(chunk)
668668
if len(buf) < HEADER_SIZE:
669669
continue
670-
payload_len, _stream_id, msg_type, _flags = struct.unpack_from(">IIBB", buf)
670+
payload_len, _, msg_type, _ = struct.unpack_from(">IIBB", buf)
671671
if payload_len > MAX_PAYLOAD:
672672
raise ProtocolError(
673673
f"RegisterPlugin response payload too large: {payload_len}"

0 commit comments

Comments
 (0)