Skip to content

Commit

Permalink
Fix "Fix metadata context"
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Nov 2, 2024
1 parent 0e51179 commit b460484
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions outbound/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ import (
)

func New(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.Outbound) (adapter.Outbound, error) {
if tag != "" {
ctx = adapter.WithContext(ctx, &adapter.InboundContext{
Outbound: tag,
})
}
if options.Type == "" {
return nil, E.New("missing outbound type")
}
Expand Down

0 comments on commit b460484

Please sign in to comment.