+6
-10
appview/db/jetstream.go
+6
-10
appview/db/jetstream.go
···
+1
-2
appview/pages/templates/knots.html
+1
-2
appview/pages/templates/knots.html
···<section class="rounded bg-white dark:bg-gray-800 drop-shadow-sm px-6 py-4 mb-6 w-full lg:w-fit">
+1
-1
appview/state/jetstream.go
+1
-1
appview/state/jetstream.go
+9
-1
appview/state/state.go
+9
-1
appview/state/state.go
···-jc, err := jetstream.NewJetstreamClient(config.JetstreamEndpoint, "appview", []string{tangled.GraphFollowNSID}, nil, slog.Default(), wrapper, false)
-150
cmd/jstest/main.go
-150
cmd/jstest/main.go
···
+1
-1
cmd/knotserver/main.go
+1
-1
cmd/knotserver/main.go
···
+86
-24
jetstream/jetstream.go
+86
-24
jetstream/jetstream.go
·········func NewJetstreamClient(endpoint, ident string, collections []string, cfg *client.ClientConfig, logger *slog.Logger, db DB, waitForDid bool) (*JetstreamClient, error) {···// StartJetstream starts the jetstream client and processes events using the provided processFunc.-// The caller is responsible for saving the last time_us to the database (just use your db.SaveLastTimeUs).+// The caller is responsible for saving the last time_us to the database (just use your db.UpdateLastTimeUs).func (j *JetstreamClient) StartJetstream(ctx context.Context, processFunc func(context.Context, *models.Event) error) error {············
+6
-10
knotserver/db/jetstream.go
+6
-10
knotserver/db/jetstream.go
···
+2
-2
knotserver/db/pubkeys.go
+2
-2
knotserver/db/pubkeys.go
+3
-1
knotserver/handler.go
+3
-1
knotserver/handler.go
+2
-2
knotserver/jetstream.go
+2
-2
knotserver/jetstream.go
······
+3
-3
knotserver/routes.go
+3
-3
knotserver/routes.go
·········