Skip to content

Commit e2b999c

Browse files
authored
Rename "Default workspace" to "Starter workspace" (#1425)
1 parent 9f6cdfd commit e2b999c

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

pkg/wcore/wcore.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import (
2121

2222
// TODO bring Tx infra into wcore
2323

24-
const DefaultTimeout = 2 * time.Second
25-
const DefaultActivateBlockTimeout = 60 * time.Second
24+
const StarterTimeout = 2 * time.Second
25+
const StarterActivateBlockTimeout = 60 * time.Second
2626

2727
// Ensures that the initial data is present in the store, creates an initial window if needed
2828
func EnsureInitialData() error {
@@ -58,16 +58,16 @@ func EnsureInitialData() error {
5858
log.Println("client has windows")
5959
return nil
6060
}
61-
log.Println("client has no windows, creating default workspace")
62-
defaultWs, err := CreateWorkspace(ctx, "Default workspace", "circle", "green")
61+
log.Println("client has no windows, creating starter workspace")
62+
starterWs, err := CreateWorkspace(ctx, "Starter workspace", "circle", "green")
6363
if err != nil {
64-
return fmt.Errorf("error creating default workspace: %w", err)
64+
return fmt.Errorf("error creating starter workspace: %w", err)
6565
}
66-
_, err = CreateTab(ctx, defaultWs.OID, "", true, true)
66+
_, err = CreateTab(ctx, starterWs.OID, "", true, true)
6767
if err != nil {
6868
return fmt.Errorf("error creating tab: %w", err)
6969
}
70-
_, err = CreateWindow(ctx, nil, defaultWs.OID)
70+
_, err = CreateWindow(ctx, nil, starterWs.OID)
7171
if err != nil {
7272
return fmt.Errorf("error creating window: %w", err)
7373
}

0 commit comments

Comments
 (0)