MCPcopy Create free account
hub / github.com/compozy/agh / withDefaults

Method withDefaults

internal/network/validate.go:1077–1085  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1075}
1076
1077func (opts ValidateOptions) withDefaults() ValidateOptions {
1078 if opts.Now.IsZero() {
1079 opts.Now = time.Now().UTC()
1080 }
1081 if opts.MaxReplayAge <= 0 {
1082 opts.MaxReplayAge = DefaultMaxReplayAge
1083 }
1084 return opts
1085}

Callers 1

NormalizeEnvelopeFunction · 0.45

Calls 2

IsZeroMethod · 0.45
NowMethod · 0.45

Tested by

no test coverage detected