Add default buffer size
This commit is contained in:
parent
5348a23f58
commit
59f2e3466c
@ -27,7 +27,7 @@ public class Program {
|
||||
|
||||
try {
|
||||
if (args[1] == "MD5") {
|
||||
|
||||
utils.doTheThing(args[1]);
|
||||
}
|
||||
int bufferSize = int.Parse(args[2]);
|
||||
utils.doTheThing(args[1], bufferSize);
|
||||
@ -69,7 +69,7 @@ public class Program {
|
||||
|
||||
static void PrintAvailableOptions() {
|
||||
String[] options = {
|
||||
"checksum - MD5, Murmur and XxHash",
|
||||
"checksum - MD5, Murmur and XxHash - Default buffer size is 4096",
|
||||
"compareDatabases",
|
||||
"compareChecksums",
|
||||
"saveToSqlite",
|
||||
|
@ -199,7 +199,7 @@ public class ChksumUtils {
|
||||
return hash;
|
||||
}
|
||||
|
||||
public void doTheThing(string hashalgo, int bufferSize) {
|
||||
public void doTheThing(string hashalgo, int bufferSize = 4096) {
|
||||
|
||||
ConnectionMultiplexer redis = ConnectionMultiplexer.Connect("localhost");
|
||||
IDatabase db = redis.GetDatabase();
|
||||
|
Loading…
x
Reference in New Issue
Block a user