mirror of
https://github.com/usememos/memos.git
synced 2025-02-16 03:12:13 +01:00
chore: fix linter
This commit is contained in:
parent
464b00ea0b
commit
811c0757c4
@ -61,8 +61,7 @@ func NewAPIV1Service(secret string, profile *profile.Profile, store *store.Store
|
||||
|
||||
// RegisterGateway registers the gRPC-Gateway with the given Echo instance.
|
||||
func (s *APIV1Service) RegisterGateway(ctx context.Context, echoServer *echo.Echo) error {
|
||||
conn, err := grpc.DialContext(
|
||||
ctx,
|
||||
conn, err := grpc.NewClient(
|
||||
fmt.Sprintf("%s:%d", s.Profile.Addr, s.Profile.Port),
|
||||
grpc.WithTransportCredentials(insecure.NewCredentials()),
|
||||
grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(100*1024*1024)),
|
||||
|
Loading…
x
Reference in New Issue
Block a user