mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-18 16:17:03 +00:00
GODT-1650: Remove unused gRPC event (go side)
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -344,7 +344,6 @@ message CacheEvent {
|
|||||||
CacheErrorEvent error = 1;
|
CacheErrorEvent error = 1;
|
||||||
CacheLocationChangeSuccessEvent locationChangedSuccess = 2;
|
CacheLocationChangeSuccessEvent locationChangedSuccess = 2;
|
||||||
ChangeLocalCacheFinishedEvent changeLocalCacheFinished = 3;
|
ChangeLocalCacheFinishedEvent changeLocalCacheFinished = 3;
|
||||||
IsCacheOnDiskEnabledChanged isCacheOnDiskEnabledChanged = 4;
|
|
||||||
DiskCachePathChanged diskCachePathChanged = 5;
|
DiskCachePathChanged diskCachePathChanged = 5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -365,11 +364,6 @@ message ChangeLocalCacheFinishedEvent {
|
|||||||
bool willRestart = 1;
|
bool willRestart = 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
message IsCacheOnDiskEnabledChanged {
|
|
||||||
bool enabled = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
message DiskCachePathChanged {
|
message DiskCachePathChanged {
|
||||||
string path = 1;
|
string path = 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,7 +8,6 @@ package grpc
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
context "context"
|
context "context"
|
||||||
|
|
||||||
grpc "google.golang.org/grpc"
|
grpc "google.golang.org/grpc"
|
||||||
codes "google.golang.org/grpc/codes"
|
codes "google.golang.org/grpc/codes"
|
||||||
status "google.golang.org/grpc/status"
|
status "google.golang.org/grpc/status"
|
||||||
|
|||||||
@ -111,10 +111,6 @@ func NewCacheChangeLocalCacheFinishedEvent(willRestart bool) *StreamEvent {
|
|||||||
}})
|
}})
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewIsCacheOnDiskEnabledChanged(enabled bool) *StreamEvent {
|
|
||||||
return cacheEvent(&CacheEvent{Event: &CacheEvent_IsCacheOnDiskEnabledChanged{IsCacheOnDiskEnabledChanged: &IsCacheOnDiskEnabledChanged{Enabled: enabled}}})
|
|
||||||
}
|
|
||||||
|
|
||||||
func NewDiskCachePathChanged(path string) *StreamEvent {
|
func NewDiskCachePathChanged(path string) *StreamEvent {
|
||||||
return cacheEvent(&CacheEvent{Event: &CacheEvent_DiskCachePathChanged{DiskCachePathChanged: &DiskCachePathChanged{Path: path}}})
|
return cacheEvent(&CacheEvent{Event: &CacheEvent_DiskCachePathChanged{DiskCachePathChanged: &DiskCachePathChanged{Path: path}}})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -130,7 +130,6 @@ func (s *Service) StartEventTest() error { //nolint:funlen
|
|||||||
NewCacheErrorEvent(CacheErrorType_CACHE_UNAVAILABLE_ERROR),
|
NewCacheErrorEvent(CacheErrorType_CACHE_UNAVAILABLE_ERROR),
|
||||||
NewCacheLocationChangeSuccessEvent(),
|
NewCacheLocationChangeSuccessEvent(),
|
||||||
NewCacheChangeLocalCacheFinishedEvent(true),
|
NewCacheChangeLocalCacheFinishedEvent(true),
|
||||||
NewIsCacheOnDiskEnabledChanged(true),
|
|
||||||
NewDiskCachePathChanged("/dummy/path"),
|
NewDiskCachePathChanged("/dummy/path"),
|
||||||
|
|
||||||
// mail settings
|
// mail settings
|
||||||
|
|||||||
Reference in New Issue
Block a user