Chore(core/adapter): rename to TransportHandler

This commit is contained in:
xjasonlyu
2022-03-29 15:26:00 +08:00
parent 20fe2e4cd8
commit ba7a7ddc95
3 changed files with 4 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ import (
)
// CreateStackWithOptions creates *stack.Stack with given options.
func CreateStackWithOptions(linkEP stack.LinkEndpoint, handler adapter.Handler, opts ...option.Option) (*stack.Stack, error) {
func CreateStackWithOptions(linkEP stack.LinkEndpoint, handler adapter.TransportHandler, opts ...option.Option) (*stack.Stack, error) {
s := stack.New(stack.Options{
NetworkProtocols: []stack.NetworkProtocolFactory{
ipv4.NewProtocol,