Fix metadata context

This commit is contained in:
世界
2024-10-27 07:45:15 +08:00
parent 2b46d5ec37
commit 43b1783c98
10 changed files with 15 additions and 29 deletions

View File

@@ -11,11 +11,6 @@ import (
)
func New(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.Outbound) (adapter.Outbound, error) {
var metadata *adapter.InboundContext
if tag != "" {
ctx, metadata = adapter.AppendContext(ctx)
metadata.Outbound = tag
}
if options.Type == "" {
return nil, E.New("missing outbound type")
}