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:
@ -92,7 +92,7 @@ baz
|
||||
}
|
||||
|
||||
// error if we aren't running node in online mode
|
||||
if nd.LocalMode() {
|
||||
if !nd.IsOnline {
|
||||
return ErrNotOnline
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user