Skip to content

Commit

Permalink
Remove cursor db update completely
Browse files Browse the repository at this point in the history
  • Loading branch information
richardr1126 committed Dec 6, 2024
1 parent 2d11363 commit 76c95e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firehose/data_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def on_message_handler(message: firehose_models.MessageFrame) -> None:
# Update the client's parameters with the new cursor
client.update_params(models.ComAtprotoSyncSubscribeRepos.Params(cursor=commit.seq))
# Persist the new cursor in the database
SubscriptionState.update(cursor=commit.seq).where(SubscriptionState.service == name).execute()
#SubscriptionState.update(cursor=commit.seq).where(SubscriptionState.service == name).execute()

if not commit.blocks:
# Skip if there are no blocks to process
Expand Down

0 comments on commit 76c95e5

Please sign in to comment.