mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 04:36:43 +00:00
chore: update golangci-lint to 1.61.0.
This commit is contained in:
@ -214,7 +214,10 @@ func NewUserBadEvent(userID string, errorMessage string) *StreamEvent {
|
||||
}
|
||||
|
||||
func NewUsedBytesChangedEvent(userID string, usedBytes uint64) *StreamEvent {
|
||||
return userEvent(&UserEvent{Event: &UserEvent_UsedBytesChangedEvent{UsedBytesChangedEvent: &UsedBytesChangedEvent{UserID: userID, UsedBytes: int64(usedBytes)}}})
|
||||
return userEvent(&UserEvent{Event: &UserEvent_UsedBytesChangedEvent{UsedBytesChangedEvent: &UsedBytesChangedEvent{
|
||||
UserID: userID,
|
||||
UsedBytes: int64(usedBytes), //nolint:gosec // disable G115
|
||||
}}})
|
||||
}
|
||||
|
||||
func newIMAPLoginFailedEvent(username string) *StreamEvent {
|
||||
|
||||
@ -717,8 +717,8 @@ func (s *Service) MailServerSettings(_ context.Context, _ *emptypb.Empty) (*Imap
|
||||
state: protoimpl.MessageState{},
|
||||
sizeCache: 0,
|
||||
unknownFields: nil,
|
||||
ImapPort: int32(s.bridge.GetIMAPPort()),
|
||||
SmtpPort: int32(s.bridge.GetSMTPPort()),
|
||||
ImapPort: int32(s.bridge.GetIMAPPort()), //nolint:gosec // disable G115
|
||||
SmtpPort: int32(s.bridge.GetSMTPPort()), //nolint:gosec // disable G115
|
||||
UseSSLForImap: s.bridge.GetIMAPSSL(),
|
||||
UseSSLForSmtp: s.bridge.GetSMTPSSL(),
|
||||
}, nil
|
||||
@ -864,8 +864,8 @@ func base64Decode(in []byte) ([]byte, error) {
|
||||
|
||||
func (s *Service) getMailServerSettings() *ImapSmtpSettings {
|
||||
return &ImapSmtpSettings{
|
||||
ImapPort: int32(s.bridge.GetIMAPPort()),
|
||||
SmtpPort: int32(s.bridge.GetSMTPPort()),
|
||||
ImapPort: int32(s.bridge.GetIMAPPort()), //nolint:gosec // disable G115
|
||||
SmtpPort: int32(s.bridge.GetSMTPPort()), //nolint:gosec // disable G115
|
||||
UseSSLForImap: s.bridge.GetIMAPSSL(),
|
||||
UseSSLForSmtp: s.bridge.GetSMTPSSL(),
|
||||
}
|
||||
|
||||
@ -71,8 +71,8 @@ func grpcUserFromInfo(user bridge.UserInfo) *User {
|
||||
AvatarText: getInitials(user.Username),
|
||||
State: userStateToGrpc(user.State),
|
||||
SplitMode: user.AddressMode == vault.SplitMode,
|
||||
UsedBytes: int64(user.UsedSpace),
|
||||
TotalBytes: int64(user.MaxSpace),
|
||||
UsedBytes: int64(user.UsedSpace), //nolint:gosec // disable G115
|
||||
TotalBytes: int64(user.MaxSpace), //nolint:gosec // disable G115
|
||||
Password: user.BridgePass,
|
||||
Addresses: user.Addresses,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user