Check a ledger operation against the types its binding carries, refusing a ledger bound with none (issue 1966 T2)
This commit is contained in:
@@ -242,11 +242,6 @@ func WithLedgerWriters(writer func(module string) (*bus.Conn, error)) Option {
|
||||
return func(c *consumers) { c.ledgers.writer = writer }
|
||||
}
|
||||
|
||||
// WithLedgerTypes gives the runtime where it reads a ledger's types (ledgers.go).
|
||||
func WithLedgerTypes(types LedgerTypes) Option {
|
||||
return func(c *consumers) { c.ledgers.types = types }
|
||||
}
|
||||
|
||||
// Run launches, binds and serves, and serves each module's bundle again when it appears, changes or
|
||||
// goes, with no restart. It answers a stop function.
|
||||
func Run(conn *bus.Conn, served []Served, envs map[string]map[string]string, logf func(string, ...any), opts ...Option) (func(), error) {
|
||||
|
||||
Reference in New Issue
Block a user