mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-11 07:30:55 +00:00
Invert raw format flag to determine varint format usage in main function
This commit is contained in:
@ -300,7 +300,7 @@ def main() -> None:
|
|||||||
|
|
||||||
# Determine format: use varint (length-prefixed) if --raw-format is specified,
|
# Determine format: use varint (length-prefixed) if --raw-format is specified,
|
||||||
# otherwise use raw protobuf format (old format)
|
# otherwise use raw protobuf format (old format)
|
||||||
use_varint_format = args.raw_format
|
use_varint_format = not args.raw_format
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if args.destination:
|
if args.destination:
|
||||||
|
|||||||
Reference in New Issue
Block a user