MCPcopy Create free account
hub / github.com/daodst/chat / Start

Method Start

userapi/consumers/syncapi_readupdate.go:57–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57func (s *OutputReadUpdateConsumer) Start() error {
58 if err := jetstream.JetStreamConsumer(
59 s.ctx, s.jetstream, s.topic, s.durable, s.onMessage,
60 nats.DeliverAll(), nats.ManualAck(),
61 ); err != nil {
62 return err
63 }
64 return nil
65}
66
67func (s *OutputReadUpdateConsumer) onMessage(ctx context.Context, msg *nats.Msg) bool {
68 var read types.ReadUpdate

Callers 1

NewInternalAPIFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected