Skip to content

Commit

Permalink
Merge pull request #3 from bluesky-social/options_updates
Browse files Browse the repository at this point in the history
Allow options updates after stream initializes
  • Loading branch information
ericvolp12 authored Sep 25, 2024
2 parents 804dbce + de870bf commit df51fd6
Show file tree
Hide file tree
Showing 5 changed files with 599 additions and 456 deletions.
6 changes: 2 additions & 4 deletions cmd/jetstream/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import (
"github.com/bluesky-social/indigo/events"
"github.com/bluesky-social/indigo/events/schedulers/parallel"
"github.com/bluesky-social/jetstream/pkg/consumer"
"github.com/bluesky-social/jetstream/pkg/server"
"github.com/gorilla/websocket"
"github.com/labstack/echo/v4"
"github.com/prometheus/client_golang/prometheus/promhttp"
"go.opentelemetry.io/otel"

"github.com/urfave/cli/v2"
)
Expand Down Expand Up @@ -103,8 +103,6 @@ func main() {
}
}

var tracer = otel.Tracer("Jetstream")

// Jetstream is the main function for jetstream
func Jetstream(cctx *cli.Context) error {
ctx := cctx.Context
Expand All @@ -119,7 +117,7 @@ func Jetstream(cctx *cli.Context) error {
return fmt.Errorf("failed to parse ws-url: %w", err)
}

s, err := NewServer(cctx.Float64("max-sub-rate"))
s, err := server.NewServer(cctx.Float64("max-sub-rate"))
if err != nil {
return fmt.Errorf("failed to create server: %w", err)
}
Expand Down
Loading

0 comments on commit df51fd6

Please sign in to comment.