Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tomrf1 committed Jan 9, 2025
1 parent b3dd8f1 commit 6a9d92e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions play-v29/src/main/scala/com/gu/googleauth/groups.scala
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class GoogleGroupChecker(
.expireAfterWrite(cacheDuration)
.build(
new CacheLoader[Email, Set[String]]() {
// If the loading function throws then nothing is cached, and calls to cache.get() also throw
def load(email: Email): Set[String] = {
val result = directoryService.groups.list.setUserKey(email).execute()
result.getGroups.asScala.map(_.getEmail).toSet
Expand Down

0 comments on commit 6a9d92e

Please sign in to comment.