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
8d6af2f5
Commit
8d6af2f5
authored
Nov 05, 2015
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Revert "hack""
This reverts commit
ec4329ab
.
parent
ec4329ab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
db.coffee
db.coffee
+14
-7
No files found.
db.coffee
View file @
8d6af2f5
...
@@ -47,11 +47,18 @@ module.exports =
...
@@ -47,11 +47,18 @@ module.exports =
for
row
in
result
.
rows
for
row
in
result
.
rows
regions
[
row
.
region_id
].
gateway
=
row
.
server_id
regions
[
row
.
region_id
].
gateway
=
row
.
server_id
# temp hack before railgun-network protocol
switch
server_id
when
2
,
8
servers
[
21
].
next_hop
=
20
servers
[
21
].
next_hop
=
20
servers
[
22
].
next_hop
=
20
servers
[
22
].
next_hop
=
20
servers
[
23
].
next_hop
=
20
servers
[
23
].
next_hop
=
20
regions
[
0
].
gateway
=
21
regions
[
0
].
gateway
=
21
regions
[
1
].
gateway
=
23
regions
[
1
].
gateway
=
23
when
1
,
9
servers
[
20
].
next_hop
=
8
servers
[
21
].
next_hop
=
8
servers
[
22
].
next_hop
=
8
servers
[
23
].
next_hop
=
8
done
()
done
()
callback
servers
,
regions
callback
servers
,
regions
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