diff --git a/cli/compile.vsh b/cli/compile.vsh index 848e52cc..918679b3 100755 --- a/cli/compile.vsh +++ b/cli/compile.vsh @@ -45,7 +45,7 @@ compile_cmd := if os.user_os() == 'macos' { if prod_mode { 'v -enable-globals -g -w -n -prod hero.v' } else { - 'v -n -g -w -cg -cc tcc -d use_openssl -enable-globals hero.v' + 'v -n -g -w -cg -gc none -cc tcc -d use_openssl -enable-globals hero.v' } } else { if prod_mode { diff --git a/lib/clients/mycelium_rpc/mycelium_rpc_model.v b/lib/clients/mycelium_rpc/mycelium_rpc_model.v index c24a8c0e..92c99f22 100644 --- a/lib/clients/mycelium_rpc/mycelium_rpc_model.v +++ b/lib/clients/mycelium_rpc/mycelium_rpc_model.v @@ -17,7 +17,7 @@ pub struct MyceliumRPC { pub mut: name string = 'default' url string = default_url // RPC server URL - rpc_client ?&jsonrpc.Client @[skip] + // rpc_client ?&jsonrpc.Client @[skip] } // your checking & initialization code if needed diff --git a/lib/clients/zinit/zinit.v b/lib/clients/zinit/zinit.v index dcd885a3..761f2dab 100644 --- a/lib/clients/zinit/zinit.v +++ b/lib/clients/zinit/zinit.v @@ -5,12 +5,8 @@ import freeflowuniverse.herolib.schemas.jsonrpcmodel // Helper function to get or create the RPC client fn (mut c ZinitRPC) client_() !&jsonrpc.Client { - if client := c.rpc_client { - return client - } // Create Unix socket client mut client := jsonrpc.new_unix_socket_client(c.socket_path) - c.rpc_client = client return client } diff --git a/lib/clients/zinit/zinit_model.v b/lib/clients/zinit/zinit_model.v index 72a56134..db2c00ea 100644 --- a/lib/clients/zinit/zinit_model.v +++ b/lib/clients/zinit/zinit_model.v @@ -30,7 +30,7 @@ pub struct ZinitRPC { pub mut: name string = 'default' socket_path string - rpc_client ?&jsonrpc.Client @[skip] + // rpc_client ?&jsonrpc.Client @[skip] } // your checking & initialization code if needed