Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
perxis-go
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
perxis
perxis-go
Commits
5599d8fa
Commit
5599d8fa
authored
2 years ago
by
Anton Sattarov
Browse files
Options
Downloads
Patches
Plain Diff
remove MigrateOptions.Wait
parent
5a9c1a3b
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
pkg/environments/options.go
+0
-7
0 additions, 7 deletions
pkg/environments/options.go
pkg/environments/transport/grpc/protobuf_type_converters.microgen.go
+2
-2
2 additions, 2 deletions
...ments/transport/grpc/protobuf_type_converters.microgen.go
with
2 additions
and
9 deletions
pkg/environments/options.go
+
0
−
7
View file @
5599d8fa
package
environments
package
environments
type
MigrateOptions
struct
{
type
MigrateOptions
struct
{
// Deprecated - миграция по умолчанию выполняется синхронно
Wait
bool
// Async - запустить миграцию в асинхронном режиме
// Async - запустить миграцию в асинхронном режиме
Async
bool
Async
bool
}
}
...
@@ -12,9 +8,6 @@ type MigrateOptions struct {
...
@@ -12,9 +8,6 @@ type MigrateOptions struct {
func
MergeMigrateOptions
(
opts
...*
MigrateOptions
)
*
MigrateOptions
{
func
MergeMigrateOptions
(
opts
...*
MigrateOptions
)
*
MigrateOptions
{
o
:=
&
MigrateOptions
{}
o
:=
&
MigrateOptions
{}
for
_
,
opt
:=
range
opts
{
for
_
,
opt
:=
range
opts
{
if
opt
.
Wait
{
o
.
Wait
=
true
}
if
opt
.
Async
{
if
opt
.
Async
{
o
.
Async
=
true
o
.
Async
=
true
}
}
...
...
This diff is collapsed.
Click to expand it.
pkg/environments/transport/grpc/protobuf_type_converters.microgen.go
+
2
−
2
View file @
5599d8fa
...
@@ -88,12 +88,12 @@ func ProtoToListPtrEnvironment(protoEnvs []*pb.Environment) ([]*service.Environm
...
@@ -88,12 +88,12 @@ func ProtoToListPtrEnvironment(protoEnvs []*pb.Environment) ([]*service.Environm
func
ElPtrMigrateOptionsToProto
(
options
[]
*
service
.
MigrateOptions
)
(
*
pb
.
MigrateOptions
,
error
)
{
func
ElPtrMigrateOptionsToProto
(
options
[]
*
service
.
MigrateOptions
)
(
*
pb
.
MigrateOptions
,
error
)
{
opts
:=
service
.
MergeMigrateOptions
(
options
...
)
opts
:=
service
.
MergeMigrateOptions
(
options
...
)
return
&
pb
.
MigrateOptions
{
Wait
:
opts
.
Wait
,
Async
:
opts
.
Async
},
nil
return
&
pb
.
MigrateOptions
{
Async
:
opts
.
Async
},
nil
}
}
func
ProtoToElPtrMigrateOptions
(
protoOptions
*
pb
.
MigrateOptions
)
([]
*
service
.
MigrateOptions
,
error
)
{
func
ProtoToElPtrMigrateOptions
(
protoOptions
*
pb
.
MigrateOptions
)
([]
*
service
.
MigrateOptions
,
error
)
{
if
protoOptions
==
nil
{
if
protoOptions
==
nil
{
return
nil
,
nil
return
nil
,
nil
}
}
return
[]
*
service
.
MigrateOptions
{{
Wait
:
protoOptions
.
Wait
,
Async
:
protoOptions
.
Async
}},
nil
return
[]
*
service
.
MigrateOptions
{{
Async
:
protoOptions
.
Async
}},
nil
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment