Skip to content

Commit

Permalink
refactor: dvc spec import
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsejet committed Jan 14, 2025
1 parent 283b801 commit 05d134b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/dvc/dvc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 05d134b

Please # to comment.