mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-11-24 06:25:47 +00:00
added go routine to attest machine workflow
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
8f6630b2f6
commit
87a4384891
@ -44,14 +44,14 @@ 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
|
||||||
// go func() {
|
go func() {
|
||||||
localErr := util.IssueMachineNFT(goCtx, msg.Machine, scheme, domain, path)
|
localErr := util.IssueMachineNFT(goCtx, msg.Machine, scheme, domain, path)
|
||||||
if localErr != nil {
|
if localErr != nil {
|
||||||
util.GetAppLogger().Error(ctx, "Machine NFT issuance failed : "+localErr.Error())
|
util.GetAppLogger().Error(ctx, "Machine NFT issuance failed : "+localErr.Error())
|
||||||
} else {
|
} else {
|
||||||
util.GetAppLogger().Info(ctx, "Machine NFT issuance successful: "+msg.Machine.String())
|
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")
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user