Skip to content

Commit

Permalink
identify: remove old code targeting Go 1.17 (#1964)
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Jan 7, 2023
1 parent c67d4b8 commit 1943c64
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 29 deletions.
11 changes: 6 additions & 5 deletions p2p/protocol/identify/id.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,14 @@ const maxPushConcurrency = 32
// StreamReadTimeout is the read timeout on all incoming Identify family streams.
var StreamReadTimeout = 60 * time.Second

var (
legacyIDSize = 2 * 1024 // 2k Bytes
signedIDSize = 8 * 1024 // 8K
maxMessages = 10
defaultUserAgent = "github.com/libp2p/go-libp2p"
const (
legacyIDSize = 2 * 1024 // 2k Bytes
signedIDSize = 8 * 1024 // 8K
maxMessages = 10
)

var defaultUserAgent = "github.com/libp2p/go-libp2p"

type addPeerHandlerReq struct {
rp peer.ID
resp chan *peerHandler
Expand Down
22 changes: 0 additions & 22 deletions p2p/protocol/identify/id_go117.go

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build go1.18

package identify

import (
Expand Down

0 comments on commit 1943c64

Please sign in to comment.