Commit 1f5318fb authored by nilanjandaw's avatar nilanjandaw

file server issue fixed

parent fd39db67
......@@ -27,7 +27,8 @@ client.on('message', function (topic, message) {
if (message.type === "execute") {
console.log("function_id", function_id);
if (!fs.existsSync(local_repository + functionHash)) {
libSupport.download(host_url + functionHash, local_repository + functionHash).then(() => {
libSupport.download(host_url + "repository/" + functionHash, local_repository + functionHash).then(() => {
if (runtime === "isolate")
execute.runIsolate(local_repository + functionHash).then(result => {
client.publish("response", JSON.stringify({
......@@ -58,7 +59,6 @@ client.on('message', function (topic, message) {
}
})
} else {
console.log("in else", local_repository + functionHash);
if (runtime === "isolate")
execute.runIsolate(local_repository + functionHash).then(result => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment