[server][core] WIP: Split fileSystem and txFileSystem

This commit is contained in:
Abhishek Shroff
2025-06-12 11:58:36 +05:30
parent f2e0776d00
commit 4e788f3b93
36 changed files with 731 additions and 691 deletions

View File

@@ -35,10 +35,11 @@ func User(cmd *cobra.Command) *core.User {
func UserFileSystem(cmd *cobra.Command) core.FileSystem {
if f == nil {
user := User(cmd)
db := db.Get(context.Background())
if user == nil {
f = core.OpenOmniscient(db.Get(context.Background()))
f = core.OpenOmniscient(db)
} else {
f = user.OpenFileSystem(context.Background())
f = user.OpenFileSystem(db)
}
}
return f