Skip to content

Commit

Permalink
Merge pull request #127 from basenana/fix/grpcmxsize
Browse files Browse the repository at this point in the history
update: adjust grpc body max size
  • Loading branch information
hyponet authored Jun 15, 2024
2 parents 3701560 + a20a9b9 commit eb59577
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/apps/apis/fsapi/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ func New(ctrl controller.Controller, pathEntryMgr *pathmgr.PathManager, cfg conf

var opts = []grpc.ServerOption{
grpc.Creds(creds),
grpc.MaxRecvMsgSize(1024 * 1024 * 50), // 50M
common.WithCommonInterceptors(),
common.WithStreamInterceptors(),
}
Expand Down
1 change: 1 addition & 0 deletions cmd/apps/apis/pathmgr/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ func (m *PathManager) CreateFile(ctx context.Context, parentDir string, attr typ

en, err = m.ctrl.CreateEntry(ctx, parent.ID, attr)
if err != nil {
m.logger.Errorw("create file entry failed", "path", entryPath, "err", err)
return nil, err
}
m.logger.Infow("create file entry", "path", entryPath, "entry", en.ID)
Expand Down

0 comments on commit eb59577

Please sign in to comment.