Skip to content

Commit 7a52b89

Browse files
committed
fixed type in SnapshotBytesPerSecondMaximum() reported by @shanekenney
1 parent 50b1194 commit 7a52b89

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/Nest/DSL/Repository/FileSystemRepositoryDescriptor.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,22 @@ public FileSystemRepositoryDescriptor RestoreBytesPerSecondMaximum(string maximu
7272
/// Throttles per node snapshot rate. Defaults to 20mb per second.
7373
/// </summary>
7474
/// <param name="maximumBytesPerSecond"></param>
75+
[Obsolete("Typo, Scheduled to be removed in 2.0 use the correctly spelled method")]
7576
public FileSystemRepositoryDescriptor SnapshortBytesPerSecondMaximum(string maximumBytesPerSecond)
7677
{
7778
Self.Settings["max_snapshot_bytes_per_sec"] = maximumBytesPerSecond;
7879
return this;
7980
}
80-
81+
82+
/// <summary>
83+
/// Throttles per node snapshot rate. Defaults to 20mb per second.
84+
/// </summary>
85+
/// <param name="maximumBytesPerSecond"></param>
86+
public FileSystemRepositoryDescriptor SnapshotBytesPerSecondMaximum(string maximumBytesPerSecond)
87+
{
88+
Self.Settings["max_snapshot_bytes_per_sec"] = maximumBytesPerSecond;
89+
return this;
90+
}
8191

8292
}
8393
}

0 commit comments

Comments
 (0)