Closed tclemos closed 3 years ago
Since we started to have default values for many configurations, we can also do this for HTTP Server Read and Write timeout configuration with default values.
HTTP Server
Read
Write
https://github.com/hermeznetwork/hermez-node/blob/3fc5b4c531394e9d6a9975e2fa798bbd5029e6a4/node/node.go#L665-L667
Add new fields to the configuration to allow it to be configured, but keep the current values as the default.
Rationale
Since we started to have default values for many configurations, we can also do this for
HTTP Server
Read
andWrite
timeout configuration with default values.https://github.com/hermeznetwork/hermez-node/blob/3fc5b4c531394e9d6a9975e2fa798bbd5029e6a4/node/node.go#L665-L667
Implementation
Add new fields to the configuration to allow it to be configured, but keep the current values as the default.