fix up code after rebase
This commit is contained in:
parent
74acdfe516
commit
f21ef8ccb5
@ -39,6 +39,7 @@ import (
|
|||||||
|
|
||||||
var _ backupHandler[models.Channelable, models.ChatMessageable] = &mockBackupHandler{}
|
var _ backupHandler[models.Channelable, models.ChatMessageable] = &mockBackupHandler{}
|
||||||
|
|
||||||
|
//nolint:unused
|
||||||
type mockBackupHandler struct {
|
type mockBackupHandler struct {
|
||||||
channels []models.Channelable
|
channels []models.Channelable
|
||||||
messageIDs []string
|
messageIDs []string
|
||||||
@ -50,6 +51,7 @@ type mockBackupHandler struct {
|
|||||||
doNotInclude bool
|
doNotInclude bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint:unused
|
||||||
func (bh mockBackupHandler) augmentItemInfo(
|
func (bh mockBackupHandler) augmentItemInfo(
|
||||||
*details.GroupsInfo,
|
*details.GroupsInfo,
|
||||||
models.Channelable,
|
models.Channelable,
|
||||||
@ -123,6 +125,7 @@ func (bh mockBackupHandler) canonicalPath(
|
|||||||
false)
|
false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint:unused
|
||||||
func (bh mockBackupHandler) getItem(
|
func (bh mockBackupHandler) getItem(
|
||||||
_ context.Context,
|
_ context.Context,
|
||||||
_ string,
|
_ string,
|
||||||
|
|||||||
@ -95,6 +95,7 @@ func (bh channelsBackupHandler) PathPrefix(tenantID string) (path.Path, error) {
|
|||||||
false)
|
false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint:unused
|
||||||
func (bh channelsBackupHandler) getItem(
|
func (bh channelsBackupHandler) getItem(
|
||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
groupID string,
|
groupID string,
|
||||||
@ -104,6 +105,7 @@ func (bh channelsBackupHandler) getItem(
|
|||||||
return bh.ac.GetChannelMessage(ctx, groupID, containerIDs[0], messageID)
|
return bh.ac.GetChannelMessage(ctx, groupID, containerIDs[0], messageID)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint:unused
|
||||||
func (bh channelsBackupHandler) augmentItemInfo(
|
func (bh channelsBackupHandler) augmentItemInfo(
|
||||||
dgi *details.GroupsInfo,
|
dgi *details.GroupsInfo,
|
||||||
c models.Channelable,
|
c models.Channelable,
|
||||||
|
|||||||
@ -144,6 +144,7 @@ type getAndAugmentChannelMessage struct {
|
|||||||
Err error
|
Err error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint:unused
|
||||||
func (m getAndAugmentChannelMessage) getItem(
|
func (m getAndAugmentChannelMessage) getItem(
|
||||||
_ context.Context,
|
_ context.Context,
|
||||||
_ string,
|
_ string,
|
||||||
@ -156,6 +157,7 @@ func (m getAndAugmentChannelMessage) getItem(
|
|||||||
return msg, &details.GroupsInfo{}, m.Err
|
return msg, &details.GroupsInfo{}, m.Err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint:unused
|
||||||
func (getAndAugmentChannelMessage) augmentItemInfo(*details.GroupsInfo, models.Channelable) {
|
func (getAndAugmentChannelMessage) augmentItemInfo(*details.GroupsInfo, models.Channelable) {
|
||||||
// no-op
|
// no-op
|
||||||
}
|
}
|
||||||
|
|||||||
@ -113,6 +113,7 @@ func (bh conversationsBackupHandler) PathPrefix(tenantID string) (path.Path, err
|
|||||||
false)
|
false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint:unused
|
||||||
func (bh conversationsBackupHandler) getItem(
|
func (bh conversationsBackupHandler) getItem(
|
||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
groupID string,
|
groupID string,
|
||||||
@ -128,6 +129,7 @@ func (bh conversationsBackupHandler) getItem(
|
|||||||
api.CallConfig{})
|
api.CallConfig{})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint:unused
|
||||||
func (bh conversationsBackupHandler) augmentItemInfo(
|
func (bh conversationsBackupHandler) augmentItemInfo(
|
||||||
dgi *details.GroupsInfo,
|
dgi *details.GroupsInfo,
|
||||||
c models.Conversationable,
|
c models.Conversationable,
|
||||||
|
|||||||
@ -25,6 +25,7 @@ type backupHandler[C graph.GetIDer, I groupsItemer] interface {
|
|||||||
getItemer[I]
|
getItemer[I]
|
||||||
getContainerser[C]
|
getContainerser[C]
|
||||||
getContainerItemIDser
|
getContainerItemIDser
|
||||||
|
getItemAndAugmentInfoer[C, I]
|
||||||
includeContainerer[C]
|
includeContainerer[C]
|
||||||
canonicalPather
|
canonicalPather
|
||||||
canMakeDeltaQuerieser
|
canMakeDeltaQuerieser
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user