From e2b999c4b0d9ae81bb9020597c5d854c3714f447 Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Fri, 6 Dec 2024 15:50:52 -0800 Subject: [PATCH] Rename "Default workspace" to "Starter workspace" (#1425) --- pkg/wcore/wcore.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkg/wcore/wcore.go b/pkg/wcore/wcore.go index b5ab4165a..11fea7f15 100644 --- a/pkg/wcore/wcore.go +++ b/pkg/wcore/wcore.go @@ -21,8 +21,8 @@ import ( // TODO bring Tx infra into wcore -const DefaultTimeout = 2 * time.Second -const DefaultActivateBlockTimeout = 60 * time.Second +const StarterTimeout = 2 * time.Second +const StarterActivateBlockTimeout = 60 * time.Second // Ensures that the initial data is present in the store, creates an initial window if needed func EnsureInitialData() error { @@ -58,16 +58,16 @@ func EnsureInitialData() error { log.Println("client has windows") return nil } - log.Println("client has no windows, creating default workspace") - defaultWs, err := CreateWorkspace(ctx, "Default workspace", "circle", "green") + log.Println("client has no windows, creating starter workspace") + starterWs, err := CreateWorkspace(ctx, "Starter workspace", "circle", "green") if err != nil { - return fmt.Errorf("error creating default workspace: %w", err) + return fmt.Errorf("error creating starter workspace: %w", err) } - _, err = CreateTab(ctx, defaultWs.OID, "", true, true) + _, err = CreateTab(ctx, starterWs.OID, "", true, true) if err != nil { return fmt.Errorf("error creating tab: %w", err) } - _, err = CreateWindow(ctx, nil, defaultWs.OID) + _, err = CreateWindow(ctx, nil, starterWs.OID) if err != nil { return fmt.Errorf("error creating window: %w", err) }