Skip to content

Commit

Permalink
Comment cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
colmsnowplow committed Nov 10, 2023
1 parent c1f1f00 commit d974a63
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,11 @@ object KinesisSink {
/**
* The build method creates a TryBatchResult, which:
*
* Returns an empty list and false for hadNonThrottleErrors if everything was successful Returns
* the list of failed requests and true for hadNonThrottleErrors if we encountered any errors
* that weren't throttles Returns the list of failed requests and false for hadNonThrottleErrors
* if we encountered only throttling
* - Returns an empty list and false for hadNonThrottleErrors if everything was successful
* - Returns the list of failed requests and true for hadNonThrottleErrors if we encountered
* any errors that weren't throttles
* - Returns the list of failed requests and false for hadNonThrottleErrors if we encountered
* only throttling
*/
def build(records: List[PutRecordsRequestEntry], prr: PutRecordsResponse): TryBatchResult =
if (prr.failedRecordCount().toInt =!= 0)
Expand Down Expand Up @@ -190,7 +191,7 @@ object KinesisSink {
private def tryWriteToKinesis[F[_]: Sync](
streamName: String,
kinesis: KinesisClient,
records: List[PutRecordsRequestEntry] // ,
records: List[PutRecordsRequestEntry]
): F[Vector[PutRecordsRequestEntry]] =
Logger[F].debug(s"Writing ${records.size} records to ${streamName}") *>
Sync[F]
Expand Down

0 comments on commit d974a63

Please sign in to comment.