mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-02 03:48:26 +00:00
Announce read/write/delete status on startup (fixes #14)
This commit is contained in:
parent
4b11e66914
commit
e769de9986
9
main.go
9
main.go
@ -164,8 +164,15 @@ func main() {
|
|||||||
// Routine to pull blocks from other nodes to synchronize the local
|
// Routine to pull blocks from other nodes to synchronize the local
|
||||||
// repository. Does not run when we are in read only (publish only) mode.
|
// repository. Does not run when we are in read only (publish only) mode.
|
||||||
if !opts.ReadOnly {
|
if !opts.ReadOnly {
|
||||||
okln("Ready to synchronize")
|
if opts.Delete {
|
||||||
|
infoln("Deletes from peer nodes are allowed")
|
||||||
|
} else {
|
||||||
|
infoln("Deletes from peer nodes will be ignored")
|
||||||
|
}
|
||||||
|
okln("Ready to synchronize (read-write)")
|
||||||
m.StartRW(opts.Delete, opts.Advanced.FilesInFlight, opts.Advanced.RequestsInFlight)
|
m.StartRW(opts.Delete, opts.Advanced.FilesInFlight, opts.Advanced.RequestsInFlight)
|
||||||
|
} else {
|
||||||
|
okln("Ready to synchronize (read only; no external updates accepted)")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Periodically scan the repository and update the local model.
|
// Periodically scan the repository and update the local model.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user