Skip to content

Commit

Permalink
开了压缩改不了了
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu committed Jan 4, 2025
1 parent 33904f9 commit a55147a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public PeerHistoryService(PeerHistoryRepository peerHistoryRepository, TorrentSe
}

@Transactional
@Lock(LockModeType.OPTIMISTIC)
@Lock(LockModeType.PESSIMISTIC_WRITE)
@Retryable(retryFor = OptimisticLockingFailureException.class, backoff = @Backoff(delay = 100, multiplier = 2))
public void saveHistories(List<PeerHistory> peerHistoryList) {
peerHistoryRepository.saveAll(peerHistoryList);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ public class PeerHistory {
private String flags;
@Column(nullable = false)
private InetAddress submitterIp;
@Version
@Column(nullable = false)
private long version;
// @Column( columnDefinition = "jsonb")
// @Type(JsonType.class)
// private IPGeoData geoIP;
Expand Down

0 comments on commit a55147a

Please sign in to comment.