MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / decodeAndSet

Method decodeAndSet

pkg/settings/duration.go:118–124  ·  view source on GitHub ↗
(ctx context.Context, sv *Values, encoded string)

Source from the content-addressed store, hash-verified

116}
117
118func (d *DurationSetting) decodeAndSet(ctx context.Context, sv *Values, encoded string) error {
119 v, err := d.DecodeValue(encoded)
120 if err != nil {
121 return err
122 }
123 return d.set(ctx, sv, v)
124}
125
126func (d *DurationSetting) decodeAndSetDefaultOverride(
127 ctx context.Context, sv *Values, encoded string,

Callers

nothing calls this directly

Calls 2

DecodeValueMethod · 0.95
setMethod · 0.95

Tested by

no test coverage detected