From 05d134bd0637423df93ad415ec336c8038664862 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Tue, 14 Jan 2025 20:48:12 +0000 Subject: [PATCH] refactor: dvc spec import --- tools/dvc/dvc.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/dvc/dvc.go b/tools/dvc/dvc.go index 5b01ebc6..8f32e2c4 100644 --- a/tools/dvc/dvc.go +++ b/tools/dvc/dvc.go @@ -5,14 +5,14 @@ import ( "os" "time" - dvtlv "github.com/named-data/ndnd/dv/tlv" + spec_dv "github.com/named-data/ndnd/dv/tlv" enc "github.com/named-data/ndnd/std/encoding" "github.com/named-data/ndnd/std/engine" "github.com/named-data/ndnd/std/ndn" "github.com/named-data/ndnd/std/utils" ) -func dvGetStatus() *dvtlv.Status { +func dvGetStatus() *spec_dv.Status { app := engine.NewBasicEngine(engine.NewDefaultFace()) err := app.Start() if err != nil { @@ -45,7 +45,7 @@ func dvGetStatus() *dvtlv.Status { os.Exit(1) } - status, err := dvtlv.ParseStatus(enc.NewWireReader(args.Data.Content()), false) + status, err := spec_dv.ParseStatus(enc.NewWireReader(args.Data.Content()), false) if err != nil { fmt.Fprintf(os.Stderr, "Failed to parse router state: %v\n", err) os.Exit(1)