Skip to content

Commit

Permalink
removed unnecessary output
Browse files Browse the repository at this point in the history
  • Loading branch information
Saetch committed Jun 29, 2024
1 parent c159e55 commit e05f13e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Cluster/Node_cs/NodeBehavior.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ private static async Task<List<NodeResponse>> QueryAllNodesWithHashes(ApiConfig
string baseUrl = "http://"+config.COORDINATOR_SERVICE_URL+":"+config.PORT+"/organize/get_all_nodes";
Console.WriteLine("Making request to: " + baseUrl);
HttpResponseMessage response = await httpClient.SendAsync(new HttpRequestMessage(HttpMethod.Get, baseUrl));
string responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine("Received response for values from nodes: " + responseBody);
string responseBody = await response.Content.ReadAsStringAsync();
//deserialize responseBody to List<NodeResponse>
var ret = ParseNodeResponsesFromResponse(responseBody);

Expand Down Expand Up @@ -139,11 +139,7 @@ private static int BinarySearchFittingNode(List<NodeResponse> hashValues, int ai
int index = len/2;
int upperBound = len -1;
int lowerBound = 0;
Console.WriteLine("Binary searching for NodeResponses: ");
foreach (NodeResponse node in hashValues){
Console.WriteLine(node.name + " " + node.hash);
}
Console.WriteLine("Trying to find node for hashValue: "+aimedValue);
Console.WriteLine("Trying to find node for hashValue: "+aimedValue+" with binary search ... ");
while (true){
int currentValue = hashValues[index].hash;
int nextValue = hashValues[index + 1].hash;
Expand Down

0 comments on commit e05f13e

Please sign in to comment.