Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
polebug committed Dec 26, 2024
1 parent 942c098 commit 97f7231
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/engine/protocol/atproto/data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ func (s *dataSource) Start(ctx context.Context, tasksChan chan<- *engine.Tasks,
func (s *dataSource) pollSubscribeRepos(ctx context.Context, tasksChan chan<- *engine.Tasks) error {
uri := bluesky.BskySubscribeURI

if lo.IsEmpty(s.state.SubscribeCursor) {
if lo.IsNotEmpty(s.state.SubscribeCursor) {
uri = fmt.Sprintf("%s?cursor=%d", uri, s.state.SubscribeCursor)
} else {
uri = fmt.Sprintf("%s?cursor=1", uri)
}

conn, _, err := websocket.DefaultDialer.Dial(uri, nil)
Expand Down

0 comments on commit 97f7231

Please sign in to comment.