summaryrefslogtreecommitdiff
path: root/cmd/btrfs-rec/inspect_rebuildnodes.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-01-30 22:06:46 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-01-30 23:05:17 -0700
commitfffb8ca73af4fd9e1df353ccf779e89fe097d8ce (patch)
tree745da4f3d17c5069ea061d731eb6faaa9d86590f /cmd/btrfs-rec/inspect_rebuildnodes.go
parent86063b41fc1a235930d6c79e6b7cd38ae8d8c147 (diff)
Upgrade to lowmemjson v0.3.0
Diffstat (limited to 'cmd/btrfs-rec/inspect_rebuildnodes.go')
-rw-r--r--cmd/btrfs-rec/inspect_rebuildnodes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/btrfs-rec/inspect_rebuildnodes.go b/cmd/btrfs-rec/inspect_rebuildnodes.go
index d813f36..e8f9ada 100644
--- a/cmd/btrfs-rec/inspect_rebuildnodes.go
+++ b/cmd/btrfs-rec/inspect_rebuildnodes.go
@@ -57,7 +57,7 @@ func init() {
dlog.Errorf(ctx, "rebuild error: %v", rebuildErr)
}
dlog.Infof(ctx, "Writing re-built nodes to %s...", dst.Name())
- if err := writeJSONFile(dst, rebuilder.ListRoots(), lowmemjson.ReEncoder{
+ if err := writeJSONFile(dst, rebuilder.ListRoots(), lowmemjson.ReEncoderConfig{
Indent: "\t",
ForceTrailingNewlines: true,
}); err != nil {