Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
R
railgun-routing-client
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-client
Commits
b655b289
Commit
b655b289
authored
Dec 24, 2025
by
nanamicat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
40d50415
Pipeline
#42141
passed with stages
in 1 minute and 43 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
src/main.rs
src/main.rs
+0
-1
src/server.rs
src/server.rs
+3
-5
No files found.
src/main.rs
View file @
b655b289
...
@@ -15,7 +15,6 @@ mod connection;
...
@@ -15,7 +15,6 @@ mod connection;
mod
data
;
mod
data
;
mod
gateway_group
;
mod
gateway_group
;
mod
protocol
;
mod
protocol
;
mod
route_writer
;
mod
router
;
mod
router
;
mod
server
;
mod
server
;
mod
settings
;
mod
settings
;
...
...
src/server.rs
View file @
b655b289
use
crate
::
router
::
Router
;
use
crate
::
settings
::
ROUTE_PROTOCOL
;
use
crate
::
settings
::
ROUTE_PROTOCOL
;
use
crate
::{
connection
::
Connection
,
data
,
protocol
::
Change
};
use
crate
::{
connection
::
Connection
,
data
,
protocol
::
Change
};
use
futures
::
TryStreamExt
;
use
futures
::
TryStreamExt
;
...
@@ -53,14 +52,13 @@ impl Server {
...
@@ -53,14 +52,13 @@ impl Server {
// pub fn update(&mut self, socket: &UdpSocket, routers: &mut HashMap<u8, Router>, hello: &Hello) {
// pub fn update(&mut self, socket: &UdpSocket, routers: &mut HashMap<u8, Router>, hello: &Hello) {
// }
// }
pub
async
fn
reset
(
&
self
,
routers
:
&
Vec
<
data
::
Router
>
,
connections
:
&
BTreeMap
<
u8
,
Connection
>
)
->
anyhow
::
Result
<
()
>
{
pub
async
fn
reset
(
&
self
,
routers
:
&
Vec
<
data
::
Router
>
,
connections
:
&
BTreeMap
<
u8
,
Connection
>
)
{
let
mut
routes
=
self
.handle
.route
()
.get
(
RouteMessageBuilder
::
<
Ipv4Addr
>
::
new
()
.protocol
(
ROUTE_PROTOCOL
)
.build
())
.execute
();
let
mut
routes
=
self
.handle
.route
()
.get
(
RouteMessageBuilder
::
<
Ipv4Addr
>
::
new
()
.protocol
(
ROUTE_PROTOCOL
)
.build
())
.execute
();
while
let
Some
(
route
)
=
routes
.try_next
()
.await
?
{
while
let
Some
(
route
)
=
routes
.try_next
()
.await
.unwrap
()
{
self
.handle
.route
()
.del
(
route
)
.execute
()
.await
?
;
self
.handle
.route
()
.del
(
route
)
.execute
()
.await
.unwrap
()
;
}
}
// for router in routers.iter() {
// for router in routers.iter() {
// if()
// if()
// }
// }
Ok
(())
}
}
}
}
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