From 3cf3d8f329ce353b79e89b1ff0b982570a68db5a Mon Sep 17 00:00:00 2001
From: "alexey.stratulat" <alexey.stratulat@demlabs.net>
Date: Wed, 8 Jan 2020 22:15:52 +0700
Subject: [PATCH] [*] Fix. Added call functuion Http.new and fix call function
 loop from module server-core-python.

---
 test/example_node.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/test/example_node.py b/test/example_node.py
index 540273a0..d75db68e 100644
--- a/test/example_node.py
+++ b/test/example_node.py
@@ -109,6 +109,7 @@ init(json_string)
 setLogLevel(DEBUG)
 
 sr = ServerCore.listen("0.0.0.0", 3307, 0)
+Http.new(sr, app_name)
 EncHttp.addProc(sr, "/enc_http")
 Stream.addProcHttp(sr, "/stream")
 StreamCtl.addProcHttp(sr, "/stream_ctl")
@@ -117,10 +118,10 @@ if (configGetItem("mempool", "accept") == "true"):
     Mempool.addProc(sr, "/mempool")
 
 ev = Events()
-ev.strat()
+ev.start()
 
-rc = sr.loop()
+rc = ServerCore.loop(sr)
 
 
 
-deinit()
\ No newline at end of file
+deinit()
-- 
GitLab