Announce read/write/delete status on startup (fixes #14)

This commit is contained in:
Jakob Borg 2014-01-06 21:41:29 +01:00
parent 4b11e66914
commit e769de9986
1 changed files with 8 additions and 1 deletions

View File

@ -164,8 +164,15 @@ func main() {
// Routine to pull blocks from other nodes to synchronize the local
// repository. Does not run when we are in read only (publish only) mode.
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)
} else {
okln("Ready to synchronize (read only; no external updates accepted)")
}
// Periodically scan the repository and update the local model.