Skip to content

Commit

Permalink
Add CI flow
Browse files Browse the repository at this point in the history
Rename codegeneration.go -> main.go
  • Loading branch information
anatoly32322 committed Mar 23, 2024
1 parent eca954d commit de98eb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions internal/cmd/gstack/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,10 @@ func getExprFromDeclStmt(statement *ast.DeclStmt) (listOfExpressions []ast.Expr)
}
for _, spec := range decl.Specs {
if spec, ok := spec.(*ast.ValueSpec); ok {
for _, expr := range spec.Values {
listOfExpressions = append(listOfExpressions, expr)
}
listOfExpressions = append(listOfExpressions, spec.Values...)
}
}

return listOfExpressions
}

Expand Down
2 changes: 1 addition & 1 deletion internal/query/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (s *Session) attach(ctx context.Context) (finalErr error) {
onDone(finalErr)
}()

attachCtx, cancelAttach := xcontext.WithCancel(xcontext.WithoutDeadline(ctx))
attachCtx, cancelAttach := xcontext.WithCancel(xcontext.ValueOnly(ctx))

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

0 comments on commit de98eb7

Please sign in to comment.