summaryrefslogtreecommitdiff
path: root/stat.SaveVerbose.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-15 00:25:50 -0500
committerJeff Carr <[email protected]>2025-10-15 00:25:50 -0500
commit9d78641fec474803bd37c281ff1b436bf4666a21 (patch)
treefd8b0682560a7f767b50f2396fa05e8e383842c6 /stat.SaveVerbose.go
parent32d4a18a23f2060b5f5dc312bef8fd7975386125 (diff)
misc improvementsv0.0.164
Diffstat (limited to 'stat.SaveVerbose.go')
-rw-r--r--stat.SaveVerbose.go25
1 files changed, 25 insertions, 0 deletions
diff --git a/stat.SaveVerbose.go b/stat.SaveVerbose.go
new file mode 100644
index 0000000..5505481
--- /dev/null
+++ b/stat.SaveVerbose.go
@@ -0,0 +1,25 @@
+// Code generated by go.wit.com/apps/autogenpb DO NOT EDIT.
+// go install go.wit.com/apps/autogenpb@latest
+//
+// This file was autogenerated with autogenpb:
+// autogenpb v0.5.24 Built on 2025/10/15 04:52:04 ( 17 s)
+// Theese sort.pb.go and marshal.pb.go files are autogenerated
+// The autogenpb sources have example .proto files with instructions
+//
+
+package gitpb
+
+import (
+ "go.wit.com/lib/config"
+ "go.wit.com/log"
+)
+
+func (pb *Stats) SaveVerbose() error {
+ err := config.SavePB(pb)
+ if err == nil {
+ log.Printf("Saved %s with len(%d) hashes.\n", pb.Filename, pb.Len())
+ } else {
+ log.Printf("Save err %s with len(%d) hashes. err(%v)\n", pb.Filename, pb.Len(), err)
+ }
+ return err
+}