Skip to content

Commit 802f496

Browse files
Merge pull request #158 from DiamondLightSource/PikaTransport-Readability-Tweak
Changed PikaTransport._call_message_callback for readability
2 parents 7049f3d + b2edfe7 commit 802f496

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/workflows/transport/pika_transport.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,8 @@ def _call_message_callback(
341341
"subscription": subscription_id,
342342
}
343343
)
344-
self.subscription_callback(subscription_id)(
344+
target_function = self.subscription_callback(subscription_id)
345+
target_function(
345346
merged_headers,
346347
body,
347348
)

0 commit comments

Comments
 (0)