mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
remove not used code
This commit is contained in:
parent
35be61a9c8
commit
7de4a3d284
@ -26,16 +26,7 @@ function receiveMessage(messageId: string): Promise<MessageWrapper> {
|
||||
return client.getMessage().data(messageId)
|
||||
}
|
||||
|
||||
function receiveAllMessagesForTopic(topic: string | Uint8Array): Promise<string[]> {
|
||||
return client.getMessage().index(topic)
|
||||
}
|
||||
|
||||
async function getIotaMilestone(messageId: string): Promise<number | undefined> {
|
||||
const metadata = await client.getMessage().metadata(messageId)
|
||||
return metadata.referencedByMilestoneIndex
|
||||
}
|
||||
|
||||
export { sendMessage, receiveMessage, receiveAllMessagesForTopic, getIotaMilestone }
|
||||
export { sendMessage, receiveMessage }
|
||||
|
||||
/**
|
||||
* example for message:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user