mirror of
https://github.com/ManyakRus/crud_generator.git
synced 2024-12-22 00:36:41 +02:00
сделал mutex_GetVersionModel
This commit is contained in:
parent
dc7df48dd7
commit
67682e3d65
@ -46,11 +46,11 @@ func (crud Crud_GRPC) Read(m *lawsuit_status_types.LawsuitStatusType) error {
|
||||
}
|
||||
|
||||
// подготовка запроса
|
||||
var VersionModel = crud.GetVersionModel()
|
||||
var versionModel = crud.GetVersionModel()
|
||||
|
||||
Request := &grpc_proto.RequestId{}
|
||||
Request.ID = int64(m.ID)
|
||||
Request.VersionModel = VersionModel
|
||||
Request.VersionModel = versionModel
|
||||
|
||||
ctxMain := context.Background()
|
||||
ctx, ctxCancelFunc := context.WithTimeout(ctxMain, time.Second*time.Duration(constants.TIMEOUT_SECONDS))
|
||||
|
@ -44,11 +44,11 @@ func (crud Crud_NRPC) Read(m *lawsuit_status_types.LawsuitStatusType) error {
|
||||
}
|
||||
|
||||
// подготовка запроса
|
||||
var VersionModel = crud.GetVersionModel()
|
||||
var versionModel = crud.GetVersionModel()
|
||||
|
||||
Request := &grpc_proto.RequestId{}
|
||||
Request.ID = int64(m.ID)
|
||||
Request.VersionModel = VersionModel
|
||||
Request.VersionModel = versionModel
|
||||
|
||||
// запрос
|
||||
Response, err := nrpc_client.Client.LawsuitStatusType_Read(Request)
|
||||
|
Loading…
Reference in New Issue
Block a user