Skip to content

Commit

Permalink
removed todo
Browse files Browse the repository at this point in the history
  • Loading branch information
mdellabitta committed Mar 26, 2024
1 parent f57c3a0 commit a7e0a09
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ class OaiProtocol(oaiConfiguration: OaiConfiguration)
lazy val endpoint: String = oaiConfiguration.endpoint
lazy val metadataPrefix: Option[String] = oaiConfiguration.metadataPrefix

override def listAllRecordPages(): IterableOnce[Either[OaiError, OaiPage]] = {
val responseBuilder =
new OaiMultiPageResponseBuilder(endpoint, "ListRecords", metadataPrefix)

val multiPageResponse = responseBuilder.getResponse
// TODO: Is there a better way to make a TraversableOnce return type?
multiPageResponse.iterator
}
override def listAllRecordPages(): IterableOnce[Either[OaiError, OaiPage]] =
new OaiMultiPageResponseBuilder(
endpoint,
"ListRecords",
metadataPrefix
).getResponse.iterator

override def listAllRecordPagesForSet(
setEither: Either[OaiError, OaiSet]
Expand All @@ -23,7 +21,6 @@ class OaiProtocol(oaiConfiguration: OaiConfiguration)
val listResponse = setEither match {
case Left(error) => List(Left(error))
case Right(set) =>

val responseBuilder = new OaiMultiPageResponseBuilder(
endpoint,
"ListRecords",
Expand Down

0 comments on commit a7e0a09

Please sign in to comment.