Skip to content

Commit

Permalink
Merge branch 'develop' of just-defi:just-defi/just-link into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
running-tomato committed Feb 23, 2021
2 parents 2c16b60 + a985394 commit cf61e1d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion node/src/main/java/com/tron/client/OracleClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
Expand Down Expand Up @@ -68,7 +70,7 @@ public class OracleClient {
private static Cache<String, String> requestIdsCache = CacheBuilder.newBuilder().maximumSize(10000)
.expireAfterWrite(12, TimeUnit.HOURS).recordStats().build();

private static HashMap<String, Set<String>> listeningAddrs = Maps.newHashMap();
private static ConcurrentHashMap<String, Set<String>> listeningAddrs = new ConcurrentHashMap<>();
private HashMap<String, Long> consumeIndexMap = Maps.newHashMap();

private ScheduledExecutorService listenExecutor = Executors.newSingleThreadScheduledExecutor();
Expand Down
2 changes: 1 addition & 1 deletion node/src/main/resources/mapper/demo/JobRunsMapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<update id="updateResult">
UPDATE job_runs
SET `status` = #{status},
updated_at = DATE_FORMAT(NOW(),'%Y-%m-%d %H:%m:%s')
updated_at = DATE_FORMAT(NOW(),'%Y-%m-%d %H:%i:%s')
<if test="error!=null and error!=''">
,`error` = #{error}
</if>
Expand Down
2 changes: 1 addition & 1 deletion node/src/main/resources/mapper/demo/TaskRunsMapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<update id="updateResult">
UPDATE task_runs
SET `status` = #{status},
updated_at = DATE_FORMAT(NOW(),'%Y-%m-%d %H:%m:%s')
updated_at = DATE_FORMAT(NOW(),'%Y-%m-%d %H:%i:%s')
<if test="error!=null and error!=''">
,`error` = #{error}
</if>
Expand Down

0 comments on commit cf61e1d

Please sign in to comment.