Skip to content

Conversation

@insford
Copy link
Contributor

@insford insford commented Oct 8, 2017

참고이슈 : funfunStudy/funfunnet#21
일단 medium 사이트는 샘플로 아래 3개 등록했습니다.

  • Rainist Engineering
  • 디지털 세상을 만드는 아날로거
  • Lazysoul

sd ! Result(findArticle(body.utf8String))
}
case resp@HttpResponse(code, _, _, _) =>
log.info("Request failed, response code: " + code)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

error로 로깅해야하지 않나요?

resp.discardEntityBytes()
}

def encodeUrl(url: String) : String = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

몬가 이미 만들어진 라이브러리가 있을 법한 함수네요.
이미 만들어진게 없다면 공통 유틸리티로 빼주시면 다른 모듈에서도 사용할 수 있을 것 같네요.

private val articleCrawler =
context.system.actorOf(Props[MediumArticleCrawler], name = "mediumArticleCrawler")

final implicit val materializer: ActorMaterializer =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

딱히 사용하는 곳은 없는 것 같은데, 어떤 역할을 하는 건가요??

}
log.info("end of response ok")
case resp@HttpResponse(code, _, _, _) =>
log.info("Request failed, response code: " + code)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이것도 error 아닐까욤??

@goinhacker
Copy link
Contributor

PR을 받았는데 잊었던 건지.. 아님 못받은 건지...
이제야 봤네요 ㅜㅜ
리뷰가 늦어서 죄송합니다. 테스트까지 꼼꼼하게 해주셨네요 ...
comment한거 로그레벨 한개만 수정해 주시면 될 것 같습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants