mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-10-31 22:18:52 +00:00
use the original context's values when wrapping msg type as delivery{}
This commit is contained in:
parent
73ef63689d
commit
3439ce7012
1 changed files with 2 additions and 0 deletions
|
@ -23,6 +23,7 @@ import (
|
|||
"time"
|
||||
|
||||
"codeberg.org/gruf/go-runners"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/gtscontext"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/log"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/queue"
|
||||
)
|
||||
|
@ -243,6 +244,7 @@ func wrapMsg(ctx context.Context, msg *queue.APRequest) *delivery {
|
|||
dlv := new(delivery)
|
||||
dlv.request = wrapRequest(msg.Request)
|
||||
dlv.log = requestLog(dlv.req)
|
||||
ctx = gtscontext.WithValues(ctx, msg.Request.Context())
|
||||
dlv.req = dlv.req.WithContext(ctx)
|
||||
return dlv
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue