Skip to content

Commit def71d9

Browse files
committed
refactor apis & use same stack for redo
1 parent b5fd774 commit def71d9

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

dice/engine/assembler.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ func UpdateDR(dr *DeploymentRecord, status string) {
9595
dr.Status = status
9696
dr.Updated = time.Now()
9797
}
98+
9899
// GenerateMainApp return path where the base CDK App was generated.
99100
func (d *AssembleData) GenerateMainApp(ctx context.Context, out *websocket.Conn) (*ExecutionPlan, error) {
100101

dice/engine/tsvalue.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ type TilesGrid struct {
3636

3737
// DeploymentRecord is a record of each deployment
3838
type DeploymentRecord struct {
39-
SID string // SID is session ID for each deployment
40-
Name string // Name is unique identifier for each deployment: metadata.name
41-
Created time.Time // Created time
42-
Updated time.Time // Updated time
39+
SID string // SID is session ID for each deployment
40+
Name string // Name is unique identifier for each deployment: metadata.name
41+
Created time.Time // Created time
42+
Updated time.Time // Updated time
4343
SuperFolder string // Main folder for all stuff per deployment
4444
Status string // Status of deployment
4545
}
@@ -379,7 +379,7 @@ func AllTsDeployment() []DeploymentRecord {
379379
// IsRepeatedDeployment return flag of repeated deployment and sid if repeated
380380
func IsRepeatedDeployment(name string) (string, bool) {
381381
tss := make([]Ts, 0, len(AllTs))
382-
for _,ts := range AllTs {
382+
for _, ts := range AllTs {
383383
tss = append(tss, ts)
384384
}
385385
// By create time (descending)

dice/web/v1alphahandler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func (wb *WsBox) Processor(ctx context.Context, messageType int, p []byte, dryRu
100100
engine.SR(wb.out, []byte("--EO:-------------------------------------------------"))
101101

102102
// 2. Looking for the dSid of last deployment
103-
rdSid, isRepeated:= engine.IsRepeatedDeployment(deployment.Metadata.Name)
103+
rdSid, isRepeated := engine.IsRepeatedDeployment(deployment.Metadata.Name)
104104
if isRepeated {
105105
engine.SRf(wb.out, "Repeated deployment and last d-dSid = %s", rdSid)
106106
}

0 commit comments

Comments
 (0)