Skip to content

Commit 5f0afe8

Browse files
authored
Merge pull request #605 from subspace/refactor-protocol-name
Refactor protocol name
2 parents 1d14c1c + 04bef3e commit 5f0afe8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/subspace-networking/src/request_responses.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ pub struct ProtocolConfig {
127127

128128
impl ProtocolConfig {
129129
/// Creates request-response protocol config.
130-
pub fn new(protocol_name: String) -> ProtocolConfig {
130+
pub fn new(protocol_name: Cow<'static, str>) -> ProtocolConfig {
131131
ProtocolConfig {
132-
name: protocol_name.into(),
132+
name: protocol_name,
133133
max_request_size: 1024 * 1024,
134134
max_response_size: 16 * 1024 * 1024,
135135
request_timeout: Duration::from_secs(15),

0 commit comments

Comments
 (0)