修改用户信息和频道信息时,改成同步修改

This commit is contained in:
heavyrain.lee
2019-09-01 22:16:49 +08:00
parent 636c8ce219
commit d075b5212f
@@ -1806,7 +1806,6 @@ public class DatabaseStore {
void updateUser(final WFCMessage.User user) { void updateUser(final WFCMessage.User user) {
LOG.info("Database update user info {} {}", user.getUid(), user.getUpdateDt()); LOG.info("Database update user info {} {}", user.getUid(), user.getUpdateDt());
mScheduler.execute(()->{
Connection connection = null; Connection connection = null;
PreparedStatement statement = null; PreparedStatement statement = null;
LOG.info("Database update user info {}", user.getDisplayName()); LOG.info("Database update user info {}", user.getDisplayName());
@@ -1880,7 +1879,6 @@ public class DatabaseStore {
} finally { } finally {
DBUtil.closeDB(connection, statement); DBUtil.closeDB(connection, statement);
} }
});
} }
void deleteUserStatus(String userId) { void deleteUserStatus(String userId) {
@@ -2383,7 +2381,6 @@ public class DatabaseStore {
void updateChannelInfo(final WFCMessage.ChannelInfo channelInfo) { void updateChannelInfo(final WFCMessage.ChannelInfo channelInfo) {
LOG.info("Database update channel info {} {}", channelInfo.getTargetId(), channelInfo.getUpdateDt()); LOG.info("Database update channel info {} {}", channelInfo.getTargetId(), channelInfo.getUpdateDt());
mScheduler.execute(()->{
Connection connection = null; Connection connection = null;
PreparedStatement statement = null; PreparedStatement statement = null;
try { try {
@@ -2446,7 +2443,6 @@ public class DatabaseStore {
} finally { } finally {
DBUtil.closeDB(connection, statement); DBUtil.closeDB(connection, statement);
} }
});
} }
void removeChannelInfo(final String channelId) { void removeChannelInfo(final String channelId) {