removed machine attestation thread (to comply with testing-race conditions becoming apparent on the CI)

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Jürgen Eckel 2024-03-06 08:38:45 +01:00
parent 013a3112a7
commit ff2305a89f
No known key found for this signature in database

View File

@ -44,16 +44,13 @@ func (k msgServer) AttestMachine(goCtx context.Context, msg *types.MsgAttestMach
scheme := params.AssetRegistryScheme scheme := params.AssetRegistryScheme
domain := params.AssetRegistryDomain domain := params.AssetRegistryDomain
path := params.AssetRegistryPath path := params.AssetRegistryPath
util.TerminationWaitGroup.Add(1) localErr := util.IssueMachineNFT(goCtx, msg.Machine, scheme, domain, path)
go func() { if localErr != nil {
defer util.TerminationWaitGroup.Done() util.GetAppLogger().Error(ctx, "Machine NFT issuance failed : "+localErr.Error())
localErr := util.IssueMachineNFT(goCtx, msg.Machine, scheme, domain, path) } else {
if localErr != nil { util.GetAppLogger().Info(ctx, "Machine NFT issuance successful: "+msg.Machine.String())
util.GetAppLogger().Error(ctx, "Machine NFT issuance failed : "+localErr.Error()) }
} else {
util.GetAppLogger().Info(ctx, "Machine NFT issuance successful: "+msg.Machine.String())
}
}()
} else { } else {
util.GetAppLogger().Info(ctx, "Not block proposer: skipping Machine NFT issuance") util.GetAppLogger().Info(ctx, "Not block proposer: skipping Machine NFT issuance")
} }