Skip to content

Commit

Permalink
Revert to go1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
hsanjuan committed Jan 27, 2025
1 parent 07a34b8 commit 08419db
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
20 changes: 11 additions & 9 deletions bitswap/network/httpnet/httpnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,15 +193,17 @@ func New(host host.Host, opts ...Option) network.BitSwapNetwork {

netdialer := &net.Dialer{
// Timeout for connects to complete.
Timeout: htnet.dialTimeout,
// KeepAlive config for sending probes for an active
// connection.
KeepAliveConfig: net.KeepAliveConfig{
Enable: true,
Idle: 15 * time.Second, // default
Interval: 15 * time.Second, // default
Count: 2, // default would be 9
},
Timeout: htnet.dialTimeout,
KeepAlive: 15 * time.Second,
// TODO for go1.23
// // KeepAlive config for sending probes for an active
// // connection.
// KeepAliveConfig: net.KeepAliveConfig{
// Enable: true,
// Idle: 15 * time.Second, // default
// Interval: 15 * time.Second, // default
// Count: 2, // default would be 9
// },
}

// Re: wasm: see
Expand Down
4 changes: 2 additions & 2 deletions examples/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/ipfs/boxo/examples

go 1.23
go 1.22.0

toolchain go1.23.5
toolchain go1.22.8

require (
github.com/ipfs/boxo v0.24.3
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/ipfs/boxo

go 1.23
go 1.22.0

toolchain go1.23.5
toolchain go1.22.8

require (
github.com/alecthomas/units v0.0.0-20240927000941-0f3dac36c52b
Expand Down

0 comments on commit 08419db

Please sign in to comment.