Skip to content

Commit

Permalink
ref(decoder): Remove dead code (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
lynnagara authored Dec 21, 2022
1 parent 7d00296 commit ad77984
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions arroyo/processing/strategies/decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,6 @@ class DecodedKafkaMessage(Generic[T]):
headers: Sequence[Tuple[str, bytes]]


def validation_func(
codec: Codec[T], validate: bool, message: Message[KafkaPayload]
) -> DecodedKafkaMessage[T]:
return DecodedKafkaMessage(
message.payload.key,
codec.decode(message.payload.value, validate),
message.payload.headers,
)


class KafkaMessageDecoder(ProcessingStrategy[KafkaPayload]):
"""
Decode messages to be forwarded to the next step. Optional validation.
Expand Down

0 comments on commit ad77984

Please sign in to comment.