mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-11-26 23:45:50 +00:00
removed go routine from attest machine msg server
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
b4b8f202b5
commit
9d8636dfcf
@ -44,14 +44,12 @@ func (k msgServer) AttestMachine(goCtx context.Context, msg *types.MsgAttestMach
|
||||
scheme := params.AssetRegistryScheme
|
||||
domain := params.AssetRegistryDomain
|
||||
path := params.AssetRegistryPath
|
||||
go func() {
|
||||
localErr := util.IssueMachineNFT(goCtx, msg.Machine, scheme, domain, path)
|
||||
if localErr != nil {
|
||||
util.GetAppLogger().Error(ctx, "Machine NFT issuance failed : "+localErr.Error())
|
||||
} else {
|
||||
util.GetAppLogger().Info(ctx, "Machine NFT issuance successful: "+msg.Machine.String())
|
||||
}
|
||||
}()
|
||||
localErr := util.IssueMachineNFT(goCtx, msg.Machine, scheme, domain, path)
|
||||
if localErr != nil {
|
||||
util.GetAppLogger().Error(ctx, "Machine NFT issuance failed : "+localErr.Error())
|
||||
} else {
|
||||
util.GetAppLogger().Info(ctx, "Machine NFT issuance successful: "+msg.Machine.String())
|
||||
}
|
||||
} else {
|
||||
util.GetAppLogger().Info(ctx, "Not block proposer: skipping Machine NFT issuance")
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user