MCPcopy Create free account
hub / github.com/DoNewsCode/core / WithWriterReload

Function WithWriterReload

otkafka/dependency_option.go:51–55  ·  view source on GitHub ↗

WithWriterReload toggles whether the writer factory should reload cached instances upon OnReload event.

(shouldReload bool)

Source from the content-addressed store, hash-verified

49// WithWriterReload toggles whether the writer factory should reload cached instances upon
50// OnReload event.
51func WithWriterReload(shouldReload bool) ProvidersOptionFunc {
52 return func(options *providersOption) {
53 options.writerReloadable = shouldReload
54 }
55}

Callers 1

TestModule_hotReloadFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestModule_hotReloadFunction · 0.68