mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
server.New signature changes and test fixes. (#324)
* ctx middleware should always be the first added to router * plugable enqueue func, changed server.New signature * fix tests * remove ctx/ctx.Done from server
This commit is contained in:
@@ -51,4 +51,4 @@ type MessageQueue interface {
|
||||
Delete(context.Context, *Task) error
|
||||
}
|
||||
|
||||
type Enqueue func(*Task) (*Task, error)
|
||||
type Enqueue func(context.Context, MessageQueue, *Task) (*Task, error)
|
||||
|
||||
Reference in New Issue
Block a user