Skip to content

Commit 4b6cf20

Browse files
committed
Merge remote-tracking branch 'origin/develop' into develop
# Conflicts: # conf/nbs.db # src/main/java/io/nbs/client/listener/IPFSFileUploader.java
2 parents df07e82 + b22ccbc commit 4b6cf20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/io/nbs/client/listener/IPFSFileUploader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class IPFSFileUploader {
3939
private static Logger logger = LoggerFactory.getLogger(IPFSFileUploader.class);
4040
private static IPFS ipfs;
4141
private AttachmentInfoService service;
42-
public static int MAX_SIZE = 2000*1024*1024;
42+
public static long MAX_SIZE = 3000*1024*1024;
4343
private PeerInfo cureent;
4444
private MessagePanel messagePanel;
4545
private List<MessageItem> messageItems;
@@ -86,7 +86,7 @@ public MerkleNode addByteFileToIPFS(File file) throws FileTooLargeException {
8686
String fname = file.getName();
8787
long size = file.length();
8888
if(size>MAX_SIZE){
89-
throw new FileTooLargeException("上传文件【"+fname+"】超过"+DataSizeFormatUtil.formatDataSize((long)MAX_SIZE)+"限制.");
89+
throw new FileTooLargeException("上传文件【"+fname+"】超过"+DataSizeFormatUtil.formatDataSize(MAX_SIZE)+"限制.");
9090
}
9191
int len = (int)size;
9292
byte[] lagerBytes = new byte[len];

0 commit comments

Comments
 (0)