MCPcopy
hub / github.com/nats-io/nats.go / subjectMatchesReqID

Function subjectMatchesReqID

js.go:3210–3216  ·  view source on GitHub ↗
(subject, reqID string)

Source from the content-addressed store, hash-verified

3208}
3209
3210func subjectMatchesReqID(subject, reqID string) bool {
3211 subjectParts := strings.Split(subject, ".")
3212 if len(subjectParts) < 2 {
3213 return false
3214 }
3215 return subjectParts[len(subjectParts)-1] == reqID
3216}
3217
3218// MessageBatch provides methods to retrieve messages consumed using [Subscribe.FetchBatch].
3219type MessageBatch interface {

Callers 1

FetchBatchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected