Skip to content

Commit

Permalink
Merge pull request #65 from yanyanho/main
Browse files Browse the repository at this point in the history
delete the ipfs and fix the schedule task two minutes
  • Loading branch information
yanyanho authored Dec 3, 2023
2 parents 830202a + 28bda5d commit ac1717b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/dl/officialsite/config/IPFSConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
//@Component
@Data
@ConfigurationProperties(prefix = "ipfs")
public class IPFSConfig {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/dl/officialsite/ipfs/IPFSService.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import java.io.IOException;


@Component
//@Component
public class IPFSService {


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class RedPacketService {

public CloseableHttpClient httpClient = HttpClients.createDefault();

@Scheduled(cron = "0 0/120 * * * ? ")
@Scheduled(cron = "0 0/2 * * * ? ")
public void updateRedpacketStatus() throws IOException {
log.info("schedule task begin --------------------- ");
HttpPost request = new HttpPost("https://api.studio.thegraph.com/proxy/55957/dapp-learning-redpacket/version/latest");
Expand Down

0 comments on commit ac1717b

Please sign in to comment.