[REV] Update annotation

This commit is contained in:
pujielan 2018-02-06 12:57:30 +08:00
parent b0857ce921
commit 9f56526073
3 changed files with 4 additions and 3 deletions

View File

@ -104,8 +104,8 @@ func (ps ParseErrorList) IsFatalError() bool {
//Image 镜像
type Image struct {
Name string
Tag string
Name string `json:"name"`
Tag string `json:"tag"`
}
func (i Image) String() string {

View File

@ -223,6 +223,7 @@ func (d *SourceCodeParse) Parse() ParseErrorList {
}
}
d.Lang = lang
logrus.Debugf("d. lang result is %v", d.Lang)
if lang == code.NO {
d.errappend(ErrorAndSolve(FatalError, "代码无法失败语言类型", "请参考文档查看平台语言支持规范"))
return d.errors

View File

@ -76,7 +76,7 @@ func (f *FTPBase)UploadFile(path, file string, logger event.Logger) error {
if err != nil {
return err
}
var bufSize int64 = 1024 * 1024 * 24
var bufSize int64 = 1024 * 1024 * 50
if stat.Size() < bufSize {
bufSize = stat.Size()
logrus.Debugf("file buf size is %d", bufSize)