Skip to content

Commit

Permalink
fix(*):fix unlock #10
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksonchenzhihao committed Jan 16, 2024
1 parent 08fa1dc commit 841df25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ public Article getById(ArticleID id) throws RepositoryException {
throw new RepositoryException("get article by id failed", e);
} catch (CacheException e) {
throw new RepositoryException("set article to cache failed", e);
}finally {
CACHE_LOCK.unlock();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ public Config<?> getById(ConfigKey id) throws RepositoryException {
throw new RepositoryException("get config by id failed", e);
} catch (CacheException e) {
throw new RepositoryException("set config to cache failed", e);
} finally {
CACHE_LOCK.unlock();
}
}

Expand Down

0 comments on commit 841df25

Please sign in to comment.