fs storage

This commit is contained in:
Ilia Denisov
2026-03-13 21:07:23 +02:00
committed by GitHub
parent 43039a79bf
commit 9ade76e21d
117 changed files with 1734 additions and 176 deletions
+7 -2
View File
@@ -5,6 +5,7 @@ import (
"errors"
"fmt"
"galaxy/loader"
"galaxy/storage/fs"
"os"
"os/signal"
@@ -28,8 +29,12 @@ func main() {
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt)
defer cancel()
app := app.New()
l, err := loader.NewLoader(ctx, app, nil)
app := app.NewWithID("galaxy-client")
s, err := fs.NewFS(app.Storage().RootURI().Path())
if err != nil {
return
}
l, err := loader.NewLoader(ctx, s, nil, app)
if err != nil {
return
}