(js *jsOpts)
| 1245 | type MaxWait time.Duration |
| 1246 | |
| 1247 | func (ttl MaxWait) configureJSContext(js *jsOpts) error { |
| 1248 | js.wait = time.Duration(ttl) |
| 1249 | return nil |
| 1250 | } |
| 1251 | |
| 1252 | func (ttl MaxWait) configurePull(opts *pullOpts) error { |
| 1253 | opts.ttl = time.Duration(ttl) |