refactor(tvix/nar-bridge): rename item to stackItem
Change-Id: I76c8db3b04d9f97e51e91f7d36a4dd8c6500d1a2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9526 Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI Reviewed-by: Connor Brewster <cbrewster@hey.com>
This commit is contained in:
parent
174485038c
commit
6e9a5dcd59
1 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ type Reader struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
// An item on the directories stack
|
// An item on the directories stack
|
||||||
type item struct {
|
type stackItem struct {
|
||||||
path string
|
path string
|
||||||
directory *castorev1pb.Directory
|
directory *castorev1pb.Directory
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@ func (r *Reader) Import(
|
||||||
var rootFile *castorev1pb.FileNode
|
var rootFile *castorev1pb.FileNode
|
||||||
var stackDirectory *castorev1pb.Directory
|
var stackDirectory *castorev1pb.Directory
|
||||||
|
|
||||||
var stack = []item{}
|
var stack = []stackItem{}
|
||||||
|
|
||||||
// popFromStack is used when we transition to a different directory or
|
// popFromStack is used when we transition to a different directory or
|
||||||
// drain the stack when we reach the end of the NAR.
|
// drain the stack when we reach the end of the NAR.
|
||||||
|
@ -253,7 +253,7 @@ func (r *Reader) Import(
|
||||||
Files: []*castorev1pb.FileNode{},
|
Files: []*castorev1pb.FileNode{},
|
||||||
Symlinks: []*castorev1pb.SymlinkNode{},
|
Symlinks: []*castorev1pb.SymlinkNode{},
|
||||||
}
|
}
|
||||||
stack = append(stack, item{
|
stack = append(stack, stackItem{
|
||||||
directory: directory,
|
directory: directory,
|
||||||
path: hdr.Path,
|
path: hdr.Path,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue