MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / sendBLIPMessage

Method sendBLIPMessage

db/blip_sync_context.go:621–628  ·  view source on GitHub ↗

sendBLIPMessage is a simple wrapper around all sent BLIP messages

(sender *blip.Sender, msg *blip.Message)

Source from the content-addressed store, hash-verified

619
620// sendBLIPMessage is a simple wrapper around all sent BLIP messages
621func (bsc *BlipSyncContext) sendBLIPMessage(sender *blip.Sender, msg *blip.Message) bool {
622 ok := sender.Send(msg)
623 if base.LogTraceEnabled(bsc.loggingCtx, base.KeySyncMsg) {
624 rqBody, _ := msg.Body()
625 base.TracefCtx(bsc.loggingCtx, base.KeySyncMsg, "Sent Req %s: Body: '%s' Properties: %v", msg, base.UD(rqBody), base.UD(msg.Properties))
626 }
627 return ok
628}
629
630func (bsc *BlipSyncContext) sendNoRev(sender *blip.Sender, docID, revID string, collectionIdx *int, seq SequenceID, err error) error {
631 noRevRq := NewNoRevMessage()

Callers 5

sendNoRevMethod · 0.95
sendBatchOfChangesMethod · 0.80
sendGetAttachmentMethod · 0.80
sendProveAttachmentMethod · 0.80

Calls 5

LogTraceEnabledFunction · 0.92
TracefCtxFunction · 0.92
UDFunction · 0.92
SendMethod · 0.65
BodyMethod · 0.45

Tested by

no test coverage detected