chore: update db connection params (#1960)

This commit is contained in:
boojack
2023-07-15 10:26:19 +08:00
committed by GitHub
parent 6b17a27a13
commit 40a30d46af
4 changed files with 7 additions and 4 deletions

View File

@@ -75,7 +75,7 @@ func NewServer(ctx context.Context, profile *profile.Profile, store *store.Store
serverID, err := s.getSystemServerID(ctx)
if err != nil {
return nil, err
return nil, fmt.Errorf("failed to retrieve system server ID: %w", err)
}
s.ID = serverID
@@ -85,7 +85,7 @@ func NewServer(ctx context.Context, profile *profile.Profile, store *store.Store
if profile.Mode == "prod" {
secret, err = s.getSystemSecretSessionName(ctx)
if err != nil {
return nil, err
return nil, fmt.Errorf("failed to retrieve system secret session name: %w", err)
}
}
s.Secret = secret