MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / Commit

Method Commit

internal/oauth/storage.go:82–91  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

80}
81
82func (s *Storage) Commit(ctx context.Context) error {
83 tx, ok := TxFromContext(ctx)
84 if !ok {
85 // No tx on context — caller didn't BeginTX, or already
86 // committed. Treat as no-op (matches Memory store's behavior;
87 // fosite's MaybeCommitTx never reaches here without a tx).
88 return nil
89 }
90 return tx.Commit(ctx)
91}
92
93func (s *Storage) Rollback(ctx context.Context) error {
94 tx, ok := TxFromContext(ctx)

Callers 15

TestDeprovisionTeardownFunction · 0.80
ExportUserDataMethod · 0.80
DeleteUserDataTxMethod · 0.80
RecordDeliveryOutcomeMethod · 0.80
MarkMessageSentMethod · 0.80
DeleteDomainTxMethod · 0.80
WithTxMethod · 0.80
ApproveAndSendMethod · 0.80
ExpireApproveAndSendMethod · 0.80
ModifyMessageLabelsMethod · 0.80
applyOneFunction · 0.80

Calls 1

TxFromContextFunction · 0.85