Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
R
railgun-routing-server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
railgun-routing-server
Commits
6c839e92
Commit
6c839e92
authored
Jan 06, 2026
by
nanamicat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean
parent
ec9a95bf
Pipeline
#42416
passed with stages
in 59 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
11 deletions
+5
-11
src/protocol.rs
src/protocol.rs
+1
-1
src/router.rs
src/router.rs
+4
-10
No files found.
src/protocol.rs
View file @
6c839e92
...
@@ -29,7 +29,7 @@ pub struct Downlink {
...
@@ -29,7 +29,7 @@ pub struct Downlink {
pub
plan
:
BTreeMap
<
u8
,
BTreeMap
<
u8
,
u8
>>
,
pub
plan
:
BTreeMap
<
u8
,
BTreeMap
<
u8
,
u8
>>
,
}
}
#[derive(Encode,
Decode,
Serialize,
Copy,
Clone,
Debug)]
#[derive(Encode,
Decode,
Serialize,
Copy,
Clone,
Debug
,
Default
)]
pub
struct
PeerQuality
{
pub
struct
PeerQuality
{
pub
delay
:
i16
,
pub
delay
:
i16
,
pub
reliability
:
u8
,
pub
reliability
:
u8
,
...
...
src/router.rs
View file @
6c839e92
...
@@ -41,16 +41,7 @@ impl Router {
...
@@ -41,16 +41,7 @@ impl Router {
peers
:
connections
peers
:
connections
.iter
()
.iter
()
.filter
(|(
_
,
to
)|
to
.contains_key
(
&
data
.id
))
.filter
(|(
_
,
to
)|
to
.contains_key
(
&
data
.id
))
.map
(|(
&
from
,
_
)|
{
.map
(|(
&
from
,
_
)|
(
from
,
Default
::
default
()))
(
from
,
PeerQuality
{
delay
:
0
,
reliability
:
0
,
jitter
:
0
,
},
)
})
.collect
(),
.collect
(),
via
:
routers
.iter
()
.filter
(|
r
|
r
.id
!=
data
.id
)
.map
(|
r
|
(
r
.id
,
r
.id
))
.collect
(),
via
:
routers
.iter
()
.filter
(|
r
|
r
.id
!=
data
.id
)
.map
(|
r
|
(
r
.id
,
r
.id
))
.collect
(),
plan
:
BTreeMap
::
new
(),
plan
:
BTreeMap
::
new
(),
...
@@ -76,6 +67,9 @@ impl Router {
...
@@ -76,6 +67,9 @@ impl Router {
}
}
pub
fn
offline
(
&
mut
self
)
{
pub
fn
offline
(
&
mut
self
)
{
if
self
.addr
!=
None
{
tracing
::
info!
(
"router {} offline"
,
self
.id
);
}
self
.addr
=
None
;
self
.addr
=
None
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment