MCPcopy
hub / github.com/nats-io/nats.go / configurePull

Method configurePull

js.go:2876–2882  ·  view source on GitHub ↗
(opts *pullOpts)

Source from the content-addressed store, hash-verified

2874type PullHeartbeat time.Duration
2875
2876func (h PullHeartbeat) configurePull(opts *pullOpts) error {
2877 if h <= 0 {
2878 return fmt.Errorf("%w: idle heartbeat has to be greater than 0", ErrInvalidArg)
2879 }
2880 opts.hb = time.Duration(h)
2881 return nil
2882}
2883
2884// PullMaxBytes defines the max bytes allowed for a fetch request.
2885type PullMaxBytes int

Callers

nothing calls this directly

Calls 2

ErrorfMethod · 0.80
DurationMethod · 0.80

Tested by

no test coverage detected