File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments