From 8c7c8dc1ecf403db4030cc3ce3a3fa0ad6bf7fe2 Mon Sep 17 00:00:00 2001 From: LinkLeong Date: Fri, 24 Mar 2023 08:07:38 +0000 Subject: [PATCH] Adding asynchronous methods --- main.go | 1 - route/init.go | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index e0a5122..b5b5f04 100644 --- a/main.go +++ b/main.go @@ -84,7 +84,6 @@ func init() { /// // service.MountLists = make(map[string]*mountlib.MountPoint) // configfile.Install() - service.MyService.Storage().CheckAndMountAll() } // @title casaOS API diff --git a/route/init.go b/route/init.go index 441278f..ff78e61 100644 --- a/route/init.go +++ b/route/init.go @@ -92,5 +92,6 @@ func InitNetworkMount() { } connection.Directories = strings.Join(directories, ",") service.MyService.Connections().UpdateConnection(&connection) + service.MyService.Storage().CheckAndMountAll() } }