(reply: Reply.Encoded)
| 299 | } |
| 300 | |
| 301 | const replyToDoc = (reply: Reply.Encoded): ReplyDoc => |
| 302 | reply._tag === "WithExit" |
| 303 | ? { |
| 304 | id: cosmosId(reply.id), |
| 305 | _partitionKey: replyPartition(reply.requestId), |
| 306 | type: "reply", |
| 307 | rowid: reply.id, |
| 308 | kind: "WithExit", |
| 309 | requestId: reply.requestId, |
| 310 | payload: reply.exit, |
| 311 | sequence: null, |
| 312 | acked: false |
| 313 | } |
| 314 | : { |
| 315 | id: cosmosId(reply.id), |
| 316 | _partitionKey: replyPartition(reply.requestId), |
| 317 | type: "reply", |
| 318 | rowid: reply.id, |
| 319 | kind: "Chunk", |
| 320 | requestId: reply.requestId, |
| 321 | payload: reply.values, |
| 322 | sequence: reply.sequence, |
| 323 | acked: false |
| 324 | } |
| 325 | |
| 326 | const replyFromDoc = (doc: ReplyDoc): Reply.Encoded => |
| 327 | doc.kind === "WithExit" |
no test coverage detected
searching dependent graphs…