commit b021b622c886289701e3c73cde710c7b8b576f30
parent 5c6b65dd50842e5a3aa26fbfbd28639e8d1e5fc7
Author: nolash <dev@holbrook.no>
Date: Tue, 26 Jan 2021 12:34:06 +0100
Reinstate inadvertently deleted lastgas property
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/gas_proxy/runnable/server.py b/gas_proxy/runnable/server.py
@@ -37,7 +37,8 @@ if m == None:
logg.debug('using websocket host {} port {}'.format(m.group(1), m.group(2)))
connection_string = args.provider
-if __name__ == '__main__':
+
+def main():
memcache = MemCache()
ws = websocket.create_connection(connection_string)
@@ -57,3 +58,7 @@ if __name__ == '__main__':
"result": ws.get(),
}
csock.send(json.dumps(response).encode('utf-8'))
+
+
+if __name__ == '__main__':
+ main()