update
All checks were successful
Build and Publish / Metadata (push) Successful in 10s
Build and Publish / BuildAndDeployAmd64 (push) Successful in 1m11s
Build and Publish / BuildAndDeployArm64 (push) Successful in 4m0s

This commit is contained in:
2025-10-15 19:47:42 +02:00
parent 813d232921
commit e0207a8638
2 changed files with 3 additions and 3 deletions

View File

@@ -8,6 +8,7 @@ import (
"net/http" "net/http"
"os" "os"
"path/filepath" "path/filepath"
"regexp"
"sort" "sort"
"strconv" "strconv"
"strings" "strings"
@@ -27,6 +28,8 @@ func NewFileServer(dataDir string) *FileServer {
} }
} }
var cartFileRe = regexp.MustCompile(`^(\d+)\.events\.log$`)
func listCartFiles(dir string) ([]CartFileInfo, error) { func listCartFiles(dir string) ([]CartFileInfo, error) {
entries, err := os.ReadDir(dir) entries, err := os.ReadDir(dir)
if err != nil { if err != nil {

View File

@@ -6,7 +6,6 @@ import (
"log" "log"
"net/http" "net/http"
"os" "os"
"regexp"
"time" "time"
actor "git.tornberg.me/go-cart-actor/pkg/actor" actor "git.tornberg.me/go-cart-actor/pkg/actor"
@@ -30,8 +29,6 @@ func envOrDefault(key, def string) string {
return def return def
} }
var cartFileRe = regexp.MustCompile(`^(\d+)\.events\.log$`)
var globalDisk *actor.DiskStorage[cart.CartGrain] var globalDisk *actor.DiskStorage[cart.CartGrain]
func buildRegistry() actor.MutationRegistry { func buildRegistry() actor.MutationRegistry {