Fix stats API for vpp 22.06
[govpp.git] / adapter / statsclient / stat_segment_api.go
index fd7ef36..cb8b105 100644 (file)
@@ -16,10 +16,11 @@ package statsclient
 
 import (
        "fmt"
-       "git.fd.io/govpp.git/adapter"
        "sync/atomic"
        "time"
        "unsafe"
+
+       "git.fd.io/govpp.git/adapter"
 )
 
 var (
@@ -77,7 +78,7 @@ type statSegment interface {
        //
        // Note that if the index is equal to 0, the result pointer points to
        // the same memory address as the argument.
-       GetStatDirOnIndex(v dirVector, index uint32) (dirSegment, dirName, dirType)
+       GetStatDirOnIndex(v dirVector, index uint32) (dirSegment, dirName, adapter.StatType)
 
        // GetEpoch re-loads stats header and returns current epoch
        //and 'inProgress' value