MCPcopy Create free account
hub / github.com/datalust/seq-logging / _sendBatch

Method _sendBatch

seq_logger.js:180–188  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

178 }
179
180 _sendBatch() {
181 if (this._queue.length === 0) {
182 return Promise.resolve(true);
183 }
184
185 let dequeued = this._dequeBatch();
186 let drained = this._queue.length === 0;
187 return this._post(dequeued.batch, dequeued.bytes).then(() => drained);
188 }
189
190 _dequeBatch() {
191 var bytes = HEADER_FOOTER_BYTES;

Callers 2

moreMethod · 0.95
_shipMethod · 0.95

Calls 2

_dequeBatchMethod · 0.95
_postMethod · 0.95

Tested by

no test coverage detected