Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
shruthilayaj committed Nov 8, 2024
1 parent 958926d commit 9a8f16e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions snuba/subscriptions/codecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def encode(self, value: SubscriptionTaskResult) -> KafkaPayload:
"request": base64.b64encode(request.SerializeToString()).decode(
"utf-8"
),
"request_name": request.__name__,
"request_version": request.__module__.split(".", 3)[2],
"request_name": request.__class__.__name__,
"request_version": request.__class__.__module__.split(".", 3)[2],
}
else:
original_body = {**request.original_body}
Expand Down
2 changes: 1 addition & 1 deletion tests/subscriptions/test_codecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def test_decode_rpc(
build_rpc_subscription_data(entity_key=EntityKey.EAP_SPANS, metadata={}),
EntityKey.EAP_SPANS,
{
"request": "Ci0IARIJc29tZXRoaW5nGglzb21ldGhpbmciAwECAyoGCPCDuLkGMgYInIa4uQYSFCISCgcIARIDZm9vEAYaBRIDYmFyGhoIARIPCAMSC3Rlc3RfbWV0cmljGgNzdW0gASCsAg==",
"request": "Ci0IARIJc29tZXRoaW5nGglzb21ldGhpbmciAwECAyoGCMiIuLkGMgYI9Iq4uQYSFCISCgcIARIDZm9vEAYaBRIDYmFyGhoIARIPCAMSC3Rlc3RfbWV0cmljGgNzdW0gASCsAg==",
"request_name": "TimeSeriesRequest",
"request_version": "v1",
},
Expand Down

0 comments on commit 9a8f16e

Please sign in to comment.