Closed lealobanov closed 1 month ago
[!WARNING]
Rate limit exceeded
@lealobanov has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 8 minutes and 17 seconds before requesting another review.
⌛ How to resolve this issue?
After the wait time has elapsed, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR. We recommend that you space out your commits to avoid hitting the rate limit.🚦 How do rate limits work?
CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our [FAQ](https://coderabbit.ai/docs/faq) for further information.📥 Commits
Files that changed from the base of the PR and between 703a5f641fa0737dc76b127afcae1cdeee98f8fa and dec4cf5b0ad0956da64d4698119c33d8f787c5ca.
This pull request introduces new classes for subscribing to and processing events and execution data from the Flow blockchain using Kotlin coroutines. The SubscribeEventsExample
and SubscribeExecutionDataExample
classes implement methods for streaming respective data types. Additionally, a test class for each new feature is included to validate functionality in a Flow emulator environment. The changes also enhance the FlowAccessApi
interface to support these new streaming capabilities.
Files | Change Summary |
---|---|
kotlin-example/src/main/kotlin/org/onflow/examples/kotlin/streaming/streamEvents/SubscribeEventsExample.kt |
Added SubscribeEventsExample class for streaming events with a streamEvents method and a processEvents method. |
kotlin-example/src/main/kotlin/org/onflow/examples/kotlin/streaming/streamExecutionData/SubscribeExecutionDataExample.kt |
Added SubscribeExecutionDataExample class for streaming execution data with a streamExecutionData method. |
kotlin-example/src/test/kotlin/org/onflow/examples/kotlin/streaming/streamEvents/SubscribeEventsExampleTest.kt |
Introduced tests for SubscribeEventsExample to validate event streaming functionality. |
kotlin-example/src/test/kotlin/org/onflow/examples/kotlin/streaming/streamExecutionData/SubscribeExecutionDataExampleTest.kt |
Introduced tests for SubscribeExecutionDataExample to validate execution data streaming functionality. |
FlowAccessApi
interface for subscribing to events and execution data, which directly relates to the streamEvents
method in the SubscribeEventsExample
class.subscribeEventsByBlockId
and subscribeEventsByBlockHeight
methods in the FlowAccessApi
interface aligns with the event subscription functionality implemented in the SubscribeEventsExample
class.FlowAccessApiImpl
to support new subscription methods for events and execution data are relevant as they enhance the underlying API that the SubscribeEventsExample
class interacts with.processEvents
method of the SubscribeEventsExample
class.In the meadow where events bloom,
A rabbit hops, dispelling gloom.
With streams of data, swift and bright,
We dance through code, a joyful sight!
Reconnect and flow, we leap with glee,
In the world of Kotlin, wild and free! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
35 files 35 suites 6m 9s :stopwatch: 68 tests 68 :heavy_check_mark: 0 :zzz: 0 :x:
Results for commit dec4cf5b.
:recycle: This comment has been updated with latest results.
53 files ±0 53 suites ±0 23s :stopwatch: ±0s 310 tests ±0 310 :heavy_check_mark: ±0 0 :zzz: ±0 0 :x: ±0
Results for commit 7d844d75. ± Comparison against base commit 7d844d75.
:recycle: This comment has been updated with latest results.
1 files 1 suites 7s :stopwatch: 1 tests 1 :heavy_check_mark: 0 :zzz: 0 :x:
Results for commit dec4cf5b.
:recycle: This comment has been updated with latest results.
6 files ±0 6 suites ±0 2m 35s :stopwatch: ±0s 30 tests ±0 30 :heavy_check_mark: ±0 0 :zzz: ±0 0 :x: ±0
Results for commit 7d844d75. ± Comparison against base commit 7d844d75.
:recycle: This comment has been updated with latest results.
Description
Streaming
For contributor use:
master
branchFiles changed
in the Github PR explorerSummary by CodeRabbit
New Features
Tests
Bug Fixes