mirror of
https://github.com/foxcpp/maddy.git
synced 2025-04-07 06:57:37 +03:00
module: Revise how inline definition arguments are handled
Stop using weird hacks and just pass them to the module, they are assumed to be aware of inline definition logic anyway.
This commit is contained in:
parent
005a6b51d5
commit
1edd031f6a
15 changed files with 55 additions and 41 deletions
|
@ -112,7 +112,10 @@ type QueueMetadata struct {
|
|||
DSN bool
|
||||
}
|
||||
|
||||
func NewQueue(_, instName string, _ []string) (module.Module, error) {
|
||||
func NewQueue(_, instName string, _, inlineArgs []string) (module.Module, error) {
|
||||
if len(inlineArgs) != 0 {
|
||||
return nil, errors.New("queue: inline arguments are not used")
|
||||
}
|
||||
return &Queue{
|
||||
name: instName,
|
||||
initialRetryTime: 15 * time.Minute,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue