Skip to content

Conversation

@Nuhvi
Copy link

@Nuhvi Nuhvi commented May 25, 2022

This is useful for example for watching operations on the bee

db.feed.on('download', (seq) => db.getOperation(seq))

Or

db.feed.on('append', () => db.feed.length > 1 && db.getOperation(db.feed.length - 1))

Also makes #23 a bit easier to achieve.

Nuhvi and others added 2 commits May 25, 2022 07:25
same as createHistoryStream but without the overhead of creating then
reading a stream to get one operation
@mafintosh
Copy link
Contributor

@nazeh LGTM on the change requested and fixing the conflict

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants