Skip to content

Commit

Permalink
Hot fix: Fix responsiveness warning (#187)
Browse files Browse the repository at this point in the history
* Fix Responsiveness Warning

* Updated changelog
  • Loading branch information
DiademShoukralla committed May 14, 2024
1 parent 5539944 commit b4ae34d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased] - YYYY-MM-DD - TODO replace date after release

### Changed

- Fixed responsiveness warning: Bifrost monitor uses fromBlockingIterator

## [v2.0.0-beta5] - 2024-05-08

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class BifrostMonitor(
* @return The infinite stream of block updatess. If startingBlocks was provided, they will be at the front of the stream.
*/
def monitorBlocks(): Stream[IO, BifrostBlockSync] = Stream.emits(startingBlocks) ++
Stream.fromIterator[IO](blockIterator, 1).through(pipe)
Stream.fromBlockingIterator[IO](blockIterator, 1).through(pipe)

}

Expand Down

0 comments on commit b4ae34d

Please sign in to comment.