Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
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
nodes
typescript
duniter
Commits
e84e48cc
Commit
e84e48cc
authored
7 years ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
[fix] Transpilation no more passes
parent
4dbfcf3e
No related branches found
No related tags found
1 merge request
!1245
Migrate to NodeJS 9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/lib/dal/sqliteDAL/MetaDAL.ts
+2
-2
2 additions, 2 deletions
app/lib/dal/sqliteDAL/MetaDAL.ts
app/modules/crawler/lib/sync.ts
+1
-1
1 addition, 1 deletion
app/modules/crawler/lib/sync.ts
with
3 additions
and
3 deletions
app/lib/dal/sqliteDAL/MetaDAL.ts
+
2
−
2
View file @
e84e48cc
...
...
@@ -407,14 +407,14 @@ export class MetaDAL extends AbstractSQLite<DBMeta> {
'
COMMIT;
'
)
}
private
async
executeMigration
(
migration
:
any
[]
,
conf
:
ConfDTO
)
{
private
async
executeMigration
(
migration
:
(
string
|
((
conf
:
ConfDTO
)
=>
void
))
,
conf
:
ConfDTO
)
{
try
{
if
(
typeof
migration
==
"
string
"
)
{
// Simple SQL script to pass
await
this
.
exec
(
migration
);
}
else
if
(
typeof
migration
==
"
function
"
)
{
}
else
{
// JS function to execute
await
migration
(
conf
);
...
...
This diff is collapsed.
Click to expand it.
app/modules/crawler/lib/sync.ts
+
1
−
1
View file @
e84e48cc
...
...
@@ -759,7 +759,7 @@ class P2PDownloader {
// Continue
return
chosens
;
},
[]);
let
candidates
=
await
Promise
.
all
(
promises
)
let
candidates
:
any
[]
=
await
Promise
.
all
(
promises
)
candidates
.
forEach
((
c
:
any
)
=>
{
c
.
tta
=
c
.
tta
||
0
;
// By default we say a node is super slow to answer
c
.
ttas
=
c
.
ttas
||
[];
// Memorize the answer delays
...
...
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