MCPcopy Index your code
hub / github.com/devaccuracy/ledgerforge / QueueInflightCommit

Method QueueInflightCommit

queue.go:339–344  ·  view source on GitHub ↗

QueueInflightCommit schedules an automatic commit for an inflight transaction at the specified date. Parameters: - ctx context.Context: The context for the operation. - transaction *model.Transaction: The transaction to be committed automatically. Returns: - error: An error if the task could not b

(ctx context.Context, transaction *model.Transaction)

Source from the content-addressed store, hash-verified

337// Returns:
338// - error: An error if the task could not be enqueued.
339func (q *Queue) QueueInflightCommit(ctx context.Context, transaction *model.Transaction) error {
340 if !transaction.InflightCommitDate.IsZero() {
341 return q.queueInflightCommit(transaction.TransactionID, transaction.InflightCommitDate)
342 }
343 return nil
344}

Calls 1

queueInflightCommitMethod · 0.95