1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-06 03:19:47 +08:00

split 'mode' into IsOnline and IsDaemon flags

1. They don't _have_ to be mutually exclusive.
2. local, mode, etc is _really_ confusing.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
This commit is contained in:
Steven Allen
2019-03-04 18:59:41 -08:00
parent ebee9ff4b4
commit 3dac4609a8
16 changed files with 25 additions and 60 deletions

View File

@ -92,7 +92,7 @@ baz
}
// error if we aren't running node in online mode
if nd.LocalMode() {
if !nd.IsOnline {
return ErrNotOnline
}