Skip to content

Commit

Permalink
filesystem: add developer note
Browse files Browse the repository at this point in the history
  • Loading branch information
djdv committed Nov 20, 2022
1 parent d439d9d commit 946c1aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/filesystem/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ func StreamDir(ctx context.Context, directory fs.ReadDirFile) <-chan DirStreamEn
defer close(stream)
for {
var (
entry DirStreamEntry
entry DirStreamEntry
// TODO: this is very inefficient.
// We should probably port the old entry cache over,
// and read batches at a time.
ents, err = directory.ReadDir(1)
)
switch {
Expand Down

0 comments on commit 946c1aa

Please sign in to comment.