Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Syncthing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
linux-utilities
Syncthing
Commits
6d3f8a2c
Commit
6d3f8a2c
authored
Jan 26, 2014
by
Jakob Borg
Browse files
Options
Downloads
Patches
Plain Diff
Parallell -> parallel (ref #13)
parent
b1ba9761
Branches
Branches containing commit
Tags
v0.5.1
Tags containing commit
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
auto/gui.files.go
+0
-1
0 additions, 1 deletion
auto/gui.files.go
config.go
+1
-1
1 addition, 1 deletion
config.go
main.go
+1
-1
1 addition, 1 deletion
main.go
model/model.go
+4
-4
4 additions, 4 deletions
model/model.go
with
6 additions
and
7 deletions
auto/gui.files.go
+
0
−
1
View file @
6d3f8a2c
package auto
import "github.com/cratonica/embed"
This diff is collapsed.
Click to expand it.
config.go
+
1
−
1
View file @
6d3f8a2c
...
...
@@ -20,7 +20,7 @@ type Options struct {
ExternalServer
string
`ini:"global-announce-server" default:"syncthing.nym.se:22025" description:"Global server for announcements"`
ExternalDiscovery
bool
`ini:"global-announce-enabled" default:"true" description:"Announce to the global announce server"`
LocalDiscovery
bool
`ini:"local-announce-enabled" default:"true" description:"Announce to the local network"`
Requests
InFlight
int
`ini:"parallel
l
-requests" default:"16" description:"Maximum number of blocks to request in parallel
l
"`
Parallel
Requests
int
`ini:"parallel-requests" default:"16" description:"Maximum number of blocks to request in parallel"`
LimitRate
int
`ini:"max-send-kbps" description:"Limit outgoing data rate (kbyte/s)"`
ScanInterval
time
.
Duration
`ini:"rescan-interval" default:"60s" description:"Scan repository for changes this often"`
ConnInterval
time
.
Duration
`ini:"reconnection-interval" default:"60s" description:"Attempt to (re)connect to peers this often"`
...
...
This diff is collapsed.
Click to expand it.
main.go
+
1
−
1
View file @
6d3f8a2c
...
...
@@ -210,7 +210,7 @@ func main() {
infoln
(
"Deletes from peer nodes will be ignored"
)
}
okln
(
"Ready to synchronize (read-write)"
)
m
.
StartRW
(
opts
.
Delete
,
opts
.
Requests
InFlight
)
m
.
StartRW
(
opts
.
Delete
,
opts
.
Parallel
Requests
)
}
else
{
okln
(
"Ready to synchronize (read only; no external updates accepted)"
)
}
...
...
This diff is collapsed.
Click to expand it.
model/model.go
+
4
−
4
View file @
6d3f8a2c
...
...
@@ -48,7 +48,7 @@ type Model struct {
sup
suppressor
parallel
l
Requests
int
parallelRequests
int
limitRequestRate
chan
struct
{}
imut
sync
.
Mutex
// protects Index
...
...
@@ -130,7 +130,7 @@ func (m *Model) StartRW(del bool, threads int) {
m
.
rwRunning
=
true
m
.
delete
=
del
m
.
parallel
l
Requests
=
threads
m
.
parallelRequests
=
threads
go
m
.
cleanTempFiles
()
if
del
{
...
...
@@ -491,7 +491,7 @@ func (m *Model) AddConnection(rawConn io.Closer, protoConn Connection) {
return
}
for
i
:=
0
;
i
<
m
.
parallel
l
Requests
;
i
++
{
for
i
:=
0
;
i
<
m
.
parallelRequests
;
i
++
{
i
:=
i
go
func
()
{
if
m
.
trace
[
"pull"
]
{
...
...
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