MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / NewOptions

Function NewOptions

twopc/twopc.go:62–66  ·  view source on GitHub ↗

NewOptions returns a new coordinator option.

(timeout time.Duration)

Source from the content-addressed store, hash-verified

60
61// NewOptions returns a new coordinator option.
62func NewOptions(timeout time.Duration) *Options {
63 return &Options{
64 timeout: timeout,
65 }
66}
67
68// NewOptionsWithCallback returns a new coordinator option with before prepare/commit/rollback callback.
69func NewOptionsWithCallback(timeout time.Duration,

Callers 1

TestTwoPhaseCommitFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestTwoPhaseCommitFunction · 0.74