Skip to content

Commit 35b7c08

Browse files
[pre-commit.ci lite] apply automatic fixes
1 parent 66efff8 commit 35b7c08

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

include/vcl/GRPCEntityClient.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include <thread>
1212

1313
#include "Exception.h"
14-
1514
#include "entity.grpc.pb.h"
1615

1716
class GRPCEntityClient {
@@ -43,7 +42,7 @@ class GRPCEntityClient {
4342
const std::map<std::string, std::string>* output_paths_;
4443
const std::map<std::string, std::string>* input_metadata_;
4544
std::map<std::string, std::string>* output_metadata_;
46-
bool *success_;
45+
bool* success_;
4746

4847
std::mutex mutex_;
4948
std::condition_variable cond_;

src/ImageLoop.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ void ImageLoop::execute_remote_operations(
201201
input_paths[imageId] = filePath;
202202
output_paths[imageId] = filePath;
203203
input_metadata[imageId] = output;
204-
}
204+
}
205205
GRPCEntityClient client(url);
206206
client.ProcessEntities(input_paths, output_paths, input_metadata, output_metadata, success);
207207
if (!success){

src/vcl/GRPCEntityClient.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void GRPCEntityClient::ProcessEntities(const std::map<std::string, std::string>&
7676
}
7777

7878
void GRPCEntityClient::SendRequest(const std::string& entity_id, const std::string& input_path) {
79-
79+
8080
InitStub();
8181
auto* call = new AsyncCall;
8282
call->entity_id = entity_id;
@@ -138,7 +138,7 @@ bool GRPCEntityClient::WriteFile(const std::string& path, const std::string& dat
138138
if (!file){
139139
*success_ = false;
140140
return false;
141-
}
141+
}
142142
file.write(data.data(), data.size());
143143
return file.good();
144144
}

tests/remote_function_test/functions/flip.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import cv2
2-
import os
32
import numpy as np
43

4+
55
def run(entity, options):
66
image_array = np.frombuffer(entity, dtype=np.uint8)
77

@@ -16,4 +16,4 @@ def run(entity, options):
1616

1717
rdict = {"metadata": "None"}
1818

19-
return ebytes, rdict
19+
return ebytes, rdict

0 commit comments

Comments
 (0)