github.com/ethersphere/bee/v2@v2.2.0/pkg/settlement/swap/swapprotocol/export_test.go (about)

     1  // Copyright 2020 The Swarm Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package swapprotocol
     6  
     7  import (
     8  	"context"
     9  	"github.com/ethersphere/bee/v2/pkg/p2p"
    10  )
    11  
    12  func (s *Service) Init(ctx context.Context, p p2p.Peer) error {
    13  	return s.init(ctx, p)
    14  }
    15  
    16  func (s *Service) Handler(ctx context.Context, p p2p.Peer, stream p2p.Stream) error {
    17  	return s.handler(ctx, p, stream)
    18  }