forked from Silverfish/proton-bridge
GODT-1650: Implement Connector.CreateMessage
This commit is contained in:
committed by
James Houlahan
parent
023e7b2d32
commit
b36972ce71
@ -21,6 +21,7 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"runtime"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@ -163,7 +164,7 @@ func syncMessages(
|
||||
|
||||
// Fetch and build each message.
|
||||
buildCh := stream.Map(
|
||||
client.GetFullMessages(ctx, messageIDs...),
|
||||
client.GetFullMessages(ctx, runtime.NumCPU(), runtime.NumCPU(), messageIDs...),
|
||||
func(ctx context.Context, full liteapi.FullMessage) (*buildRes, error) {
|
||||
return buildRFC822(ctx, full, addrKRs[full.AddressID])
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user