Fix --new_swarm CLI arg

This commit is contained in:
Aleksandr Borzunov 2022-11-27 23:11:45 +00:00
parent ad584815cd
commit bfbecac300

View File

@ -119,7 +119,7 @@ def main():
), "unrecognized value for attention_cache_bytes, examples: 1.5GB or 1500MB or 1572864000 (bytes)" ), "unrecognized value for attention_cache_bytes, examples: 1.5GB or 1500MB or 1572864000 (bytes)"
if args.pop("new_swarm"): if args.pop("new_swarm"):
args.initial_peers = [] args["initial_peers"] = []
use_auth_token = args.pop("use_auth_token") use_auth_token = args.pop("use_auth_token")
args["use_auth_token"] = True if use_auth_token in ("True", "true", "") else use_auth_token args["use_auth_token"] = True if use_auth_token in ("True", "true", "") else use_auth_token