Skip to content

Commit

Permalink
chore: migrate peering to ipfs/boxo (#10157)
Browse files Browse the repository at this point in the history
Co-authored-by: Henrique Dias <hacdias@gmail.com>
  • Loading branch information
gammazero and hacdias authored Oct 31, 2023
1 parent 33bbee5 commit ab7630f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 500 deletions.
2 changes: 1 addition & 1 deletion core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ import (

"github.com/ipfs/boxo/namesys"
ipnsrp "github.com/ipfs/boxo/namesys/republisher"
"github.com/ipfs/boxo/peering"
"github.com/ipfs/kubo/config"
"github.com/ipfs/kubo/core/bootstrap"
"github.com/ipfs/kubo/core/node"
"github.com/ipfs/kubo/core/node/libp2p"
"github.com/ipfs/kubo/fuse/mount"
"github.com/ipfs/kubo/p2p"
"github.com/ipfs/kubo/peering"
"github.com/ipfs/kubo/repo"
irouting "github.com/ipfs/kubo/routing"
)
Expand Down
5 changes: 3 additions & 2 deletions core/node/peering.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package node
import (
"context"

"github.com/ipfs/kubo/peering"
"github.com/ipfs/boxo/peering"
"github.com/libp2p/go-libp2p/core/host"
"github.com/libp2p/go-libp2p/core/peer"
"go.uber.org/fx"
Expand All @@ -18,7 +18,8 @@ func Peering(lc fx.Lifecycle, host host.Host) *peering.PeeringService {
return ps.Start()
},
OnStop: func(context.Context) error {
return ps.Stop()
ps.Stop()
return nil
},
})
return ps
Expand Down
325 changes: 0 additions & 325 deletions peering/peering.go

This file was deleted.

Loading

0 comments on commit ab7630f

Please sign in to comment.