Skip to content

Commit 111c1a0

Browse files
committed
fix nits
1 parent aa63f26 commit 111c1a0

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

nodebuilder/tests/share_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build share || integration
2+
13
package tests
24

35
import (

share/shwap/p2p/shrex/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func (c *Client) doRequest(
8282

8383
stream, err := c.host.NewStream(streamOpenCtx, peer, ProtocolID(c.params.NetworkID(), req.Name()))
8484
if err != nil {
85-
return statusOpenStreamErr, err
85+
return statusOpenStreamErr, fmt.Errorf("open stream: %w", err)
8686
}
8787

8888
c.setStreamDeadlines(ctx, logger, stream)

share/shwap/p2p/shrex/params.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ func DefaultServerParameters() *ServerParams {
5252
return &ServerParams{
5353
Parameters: &Parameters{
5454
ReadTimeout: 5 * time.Second,
55-
WriteTimeout: time.Minute, // based on max observed sample time for 256 blocks (~50s)
56-
55+
WriteTimeout: time.Minute,
5756
},
5857
HandleRequestTimeout: time.Minute,
5958
ConcurrencyLimit: 10,

0 commit comments

Comments
 (0)