Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zombienet-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
parity
Mirrored projects
zombienet-sdk
Commits
284c7912
Verified
Commit
284c7912
authored
1 year ago
by
Loris Moulin
Browse files
Options
Downloads
Patches
Plain Diff
feat: rename some provider constants
parent
9e4b3f19
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
crates/provider/src/shared/constants.rs
+8
-6
8 additions, 6 deletions
crates/provider/src/shared/constants.rs
with
8 additions
and
6 deletions
crates/provider/src/shared/constants.rs
+
8
−
6
View file @
284c7912
use
std
::
net
::{
IpAddr
,
Ipv4Addr
};
use
std
::
net
::{
IpAddr
,
Ipv4Addr
};
/// Default dir for configuration inside pods
/// Default temporary directory
pub
const
DEFAULT_REMOTE_DIR
:
&
str
=
"/cfg"
;
pub
const
DEFAULT_TMP_DIR
:
&
str
=
"/tmp"
;
/// Default dir for node /data
/// Directory for node configuration
pub
const
DEFAULT_DATA_DIR
:
&
str
=
"/data"
;
pub
const
NODE_CONFIG_DIR
:
&
str
=
"/cfg"
;
/// Directory for node configuration
pub
const
NODE_DATA_DIR
:
&
str
=
"/data"
;
/// Localhost ip
/// Localhost ip
pub
const
LOCALHOST
:
IpAddr
=
IpAddr
::
V4
(
Ipv4Addr
::
new
(
127
,
0
,
0
,
1
));
pub
const
_
LOCALHOST
:
IpAddr
=
IpAddr
::
V4
(
Ipv4Addr
::
new
(
127
,
0
,
0
,
1
));
/// The port substrate listens for p2p connections on
/// The port substrate listens for p2p connections on
pub
const
P2P_PORT
:
u16
=
30333
;
pub
const
_
P2P_PORT
:
u16
=
30333
;
/// The remote port prometheus can be accessed with
/// The remote port prometheus can be accessed with
pub
const
_PROMETHEUS_PORT
:
u16
=
9615
;
pub
const
_PROMETHEUS_PORT
:
u16
=
9615
;
/// The remote port websocket to access the RPC
/// The remote port websocket to access the RPC
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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