Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cellframe-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
17
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
cellframe-sdk
Commits
7a418476
Commit
7a418476
authored
5 days ago
by
pavel.uhanov
Browse files
Options
Downloads
Patches
Plain Diff
[*] fix macos pip error
parent
8206043b
No related branches found
Branches containing commit
No related tags found
1 merge request
!2120
Draft: feature-15728
Pipeline
#52439
failed with stage
in 20 minutes and 21 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/net/dap_chain_node_rpc.c
+3
-3
3 additions, 3 deletions
modules/net/dap_chain_node_rpc.c
modules/net/include/dap_chain_node_rpc.h
+1
-1
1 addition, 1 deletion
modules/net/include/dap_chain_node_rpc.h
with
4 additions
and
4 deletions
modules/net/dap_chain_node_rpc.c
+
3
−
3
View file @
7a418476
...
@@ -68,7 +68,7 @@ static void s_collect_cmd_stat_info(int16_t a_cmd_num, int64_t a_call_time)
...
@@ -68,7 +68,7 @@ static void s_collect_cmd_stat_info(int16_t a_cmd_num, int64_t a_call_time)
atomic_fetch_add
(
&
(
s_cmd_call_stat
+
a_cmd_num
)
->
time
,
a_call_time
);
atomic_fetch_add
(
&
(
s_cmd_call_stat
+
a_cmd_num
)
->
time
,
a_call_time
);
}
}
#if
n
def
WIN32
#ifdef
UNIX
/**
/**
* @brief get states info about current
* @brief get states info about current
* @param a_arg - pointer to callback arg
* @param a_arg - pointer to callback arg
...
@@ -133,7 +133,7 @@ void dap_chain_node_rpc_init(dap_config_t *a_cfg)
...
@@ -133,7 +133,7 @@ void dap_chain_node_rpc_init(dap_config_t *a_cfg)
return
;
return
;
}
}
if
(
l_role
==
RPC_ROLE_SERVER
)
{
if
(
l_role
==
RPC_ROLE_SERVER
)
{
#if
n
def
WIN32
#ifdef
UNIX
if
(
dap_proc_thread_timer_add
(
NULL
,
s_update_node_rpc_states_info
,
NULL
,
s_timer_update_states_info
))
{
if
(
dap_proc_thread_timer_add
(
NULL
,
s_update_node_rpc_states_info
,
NULL
,
s_timer_update_states_info
))
{
log_it
(
L_ERROR
,
"Can't activate timer on node states update"
);
log_it
(
L_ERROR
,
"Can't activate timer on node states update"
);
}
else
{
}
else
{
...
@@ -141,7 +141,7 @@ void dap_chain_node_rpc_init(dap_config_t *a_cfg)
...
@@ -141,7 +141,7 @@ void dap_chain_node_rpc_init(dap_config_t *a_cfg)
dap_cli_server_statistic_callback_add
(
s_collect_cmd_stat_info
);
dap_cli_server_statistic_callback_add
(
s_collect_cmd_stat_info
);
}
}
#else
#else
log_it
(
L_ERROR
,
"RPC server role
on win32 not avaible
"
);
log_it
(
L_ERROR
,
"RPC server role
avaible only on unix system
"
);
#endif
#endif
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
modules/net/include/dap_chain_node_rpc.h
+
1
−
1
View file @
7a418476
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
#include
"dap_chain_node_cli_cmd.h"
#include
"dap_chain_node_cli_cmd.h"
#include
"dap_config.h"
#include
"dap_config.h"
#if
n
def
WIN32
#ifdef
UNIX
#include
<sys/sysinfo.h>
#include
<sys/sysinfo.h>
#else
#else
struct
sysinfo
{
// temporary added to read
struct
sysinfo
{
// temporary added to read
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment