aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/service
diff options
context:
space:
mode:
authorGravatar you2017-05-27 13:52:55 +0300
committerGravatar you2017-05-27 13:52:55 +0300
commitdc430dec23586fd8a6ed3a0cc272f7cb1d8a8d88 (patch)
treef811cab95de96dd94f7dc6bf9f031944901883b8 /juick-server/src/main/java/com/juick/service
parent97e743385c94ac8a6084726d499c33373e255177 (diff)
readonly mode is now provided by Cloudflare
Diffstat (limited to 'juick-server/src/main/java/com/juick/service')
-rw-r--r--juick-server/src/main/java/com/juick/service/MessagesService.java2
-rw-r--r--juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java6
2 files changed, 0 insertions, 8 deletions
diff --git a/juick-server/src/main/java/com/juick/service/MessagesService.java b/juick-server/src/main/java/com/juick/service/MessagesService.java
index 8948f083..8e9d916b 100644
--- a/juick-server/src/main/java/com/juick/service/MessagesService.java
+++ b/juick-server/src/main/java/com/juick/service/MessagesService.java
@@ -85,6 +85,4 @@ public interface MessagesService {
List<Integer> getLastMessages(int hours);
List<ResponseReply> getLastReplies(int hours);
-
- boolean isReadonly();
}
diff --git a/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java b/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java
index 11ea0cbf..318b5805 100644
--- a/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java
+++ b/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java
@@ -811,10 +811,4 @@ public class MessagesServiceImpl extends BaseJdbcService implements MessagesServ
return reply;
}, -hours);
}
-
- @Transactional(readOnly = true)
- @Override
- public boolean isReadonly() {
- return getJdbcTemplate().queryForObject("SELECT @@global.read_only", Integer.class) > 0;
- }
}