Skip to content

Commit

Permalink
Remove log statements
Browse files Browse the repository at this point in the history
Signed-off-by: mramotar_dbx <mramotar@dropbox.com>
  • Loading branch information
matt-ramotar committed Oct 18, 2023
1 parent b975466 commit eb8a10a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ class FakePostApi : PostApi {
override suspend fun get(postId: String): PostGetRequestResult {
val post = posts[postId]
return if (post != null) {
println("HITTING 2 :)")
PostGetRequestResult.Data(post)
} else {
println("HITTING 2 :(")
PostGetRequestResult.Error.Message("Post $postId was not found")
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ class FakePostDatabase(private val userId: String) : PostDatabase {

nextFeed?.let {
feeds[userId] = PostData.Feed(nextFeed)
println("UPDATED FEED $it")
}
}

Expand All @@ -30,7 +29,6 @@ class FakePostDatabase(private val userId: String) : PostDatabase {

override fun findFeedByUserId(cursor: String?, size: Int): PostData.Feed? {
val feed = feeds[userId]
println("FEED RETURNING = $feed")
return feed

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ typealias PostStore = MutableStore<PostKey, PostData>
class PostStoreFactory(private val api: PostApi, private val db: PostDatabase) {

private fun createFetcher(): Fetcher<PostKey, PostData> = Fetcher.of { key ->
println("HITTING IN FETCHER")
when (key) {
is PostKey.Single -> {
when (val result = api.get(key.id)) {
Expand Down Expand Up @@ -54,7 +53,6 @@ class PostStoreFactory(private val api: PostApi, private val db: PostDatabase) {

private fun createSourceOfTruth(): SourceOfTruth<PostKey, PostData, PostData> = SourceOfTruth.of(
reader = { key ->
println("HITTING IN SOT")
flow {
when (key) {
is PostKey.Single -> {
Expand Down

0 comments on commit eb8a10a

Please sign in to comment.