1
0
mirror of https://github.com/ManyakRus/crud_generator.git synced 2025-01-03 01:22:21 +02:00

сделал mutex_GetVersionModel

This commit is contained in:
Nikitin Aleksandr 2024-01-23 17:23:21 +03:00
parent dc7df48dd7
commit 67682e3d65
2 changed files with 4 additions and 4 deletions

View File

@ -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 := &grpc_proto.RequestId{}
Request.ID = int64(m.ID) Request.ID = int64(m.ID)
Request.VersionModel = VersionModel Request.VersionModel = versionModel
ctxMain := context.Background() ctxMain := context.Background()
ctx, ctxCancelFunc := context.WithTimeout(ctxMain, time.Second*time.Duration(constants.TIMEOUT_SECONDS)) ctx, ctxCancelFunc := context.WithTimeout(ctxMain, time.Second*time.Duration(constants.TIMEOUT_SECONDS))

View File

@ -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 := &grpc_proto.RequestId{}
Request.ID = int64(m.ID) Request.ID = int64(m.ID)
Request.VersionModel = VersionModel Request.VersionModel = versionModel
// запрос // запрос
Response, err := nrpc_client.Client.LawsuitStatusType_Read(Request) Response, err := nrpc_client.Client.LawsuitStatusType_Read(Request)