Skip to content

Commit de98eb7

Browse files
author
anatoly32322
committed
Add CI flow
Rename codegeneration.go -> main.go
1 parent eca954d commit de98eb7

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

internal/cmd/gstack/main.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,10 @@ func getExprFromDeclStmt(statement *ast.DeclStmt) (listOfExpressions []ast.Expr)
5858
}
5959
for _, spec := range decl.Specs {
6060
if spec, ok := spec.(*ast.ValueSpec); ok {
61-
for _, expr := range spec.Values {
62-
listOfExpressions = append(listOfExpressions, expr)
63-
}
61+
listOfExpressions = append(listOfExpressions, spec.Values...)
6462
}
6563
}
64+
6665
return listOfExpressions
6766
}
6867

internal/query/session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func (s *Session) attach(ctx context.Context) (finalErr error) {
119119
onDone(finalErr)
120120
}()
121121

122-
attachCtx, cancelAttach := xcontext.WithCancel(xcontext.WithoutDeadline(ctx))
122+
attachCtx, cancelAttach := xcontext.WithCancel(xcontext.ValueOnly(ctx))
123123

124124
attach, err := s.grpcClient.AttachSession(attachCtx, &Ydb_Query.AttachSessionRequest{
125125
SessionId: s.id,

0 commit comments

Comments
 (0)