[backend/federation] async Task CompactAsync -> void Compact
This commit is contained in:
parent
f22c4a7c32
commit
a19697c795
2 changed files with 4 additions and 4 deletions
|
@ -103,10 +103,10 @@ public static class LdHelpers
|
|||
|
||||
return payload;
|
||||
}
|
||||
|
||||
public static async Task<string> CompactAsync(this ASActivity activity)
|
||||
|
||||
public static string Compact(this ASActivity activity)
|
||||
{
|
||||
var compacted = Compact(activity) ?? throw new Exception("Failed to compact signed activity");
|
||||
var compacted = Compact((object)activity) ?? throw new Exception("Failed to compact signed activity");
|
||||
var payload = JsonConvert.SerializeObject(compacted, JsonSerializerSettings);
|
||||
|
||||
return payload;
|
||||
|
|
|
@ -75,7 +75,7 @@ public class PreDeliverQueue
|
|||
}
|
||||
else
|
||||
{
|
||||
payload = await activity.CompactAsync();
|
||||
payload = activity.Compact();
|
||||
}
|
||||
|
||||
foreach (var inboxQueryResult in inboxQueryResults)
|
||||
|
|
Loading…
Add table
Reference in a new issue