Skip to content

Commit c38f651

Browse files
ffranrguggero
authored andcommitted
tapcfg: add default value for new proof courier service response timeout
This commit adds a new default value for the proof courier service response timeout which was added in the previous commit.
1 parent afd7495 commit c38f651

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tapcfg/config.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ const (
9898
// use for waiting for a receiver to acknowledge a proof transfer.
9999
defaultProofTransferReceiverAckTimeout = time.Hour * 6
100100

101+
// defaultProofCourierServiceResponseTimeout is the default timeout
102+
// we'll use for waiting for a response from the proof courier service.
103+
defaultProofCourierServiceResponseTimeout = time.Second * 5
104+
101105
// defaultUniverseSyncInterval is the default interval that we'll use
102106
// to sync Universe state with the federation.
103107
defaultUniverseSyncInterval = time.Minute * 10
@@ -435,6 +439,7 @@ func DefaultConfig() Config {
435439
InitialBackoff: defaultProofTransferInitialBackoff,
436440
MaxBackoff: defaultProofTransferMaxBackoff,
437441
},
442+
ServiceRequestTimeout: defaultProofCourierServiceResponseTimeout,
438443
},
439444
CustodianProofRetrievalDelay: defaultProofRetrievalDelay,
440445
Universe: &UniverseConfig{

0 commit comments

Comments
 (0)