Other: Add v2 to module name

This commit is contained in:
James Houlahan
2022-05-31 15:54:04 +02:00
parent 098956b81a
commit 4edf2eb92c
230 changed files with 696 additions and 642 deletions

View File

@ -23,15 +23,17 @@ import (
"fmt"
"strconv"
"github.com/ProtonMail/proton-bridge/pkg/pmapi"
"github.com/ProtonMail/proton-bridge/v2/pkg/pmapi"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
bolt "go.etcd.io/bbolt"
)
const syncFinishTimeKey = "sync_state" // The original key was sync_state and we want to keep compatibility.
const syncIDRangesKey = "id_ranges"
const syncIDsToBeDeletedKey = "ids_to_be_deleted"
const (
syncFinishTimeKey = "sync_state" // The original key was sync_state and we want to keep compatibility.
syncIDRangesKey = "id_ranges"
syncIDsToBeDeletedKey = "ids_to_be_deleted"
)
// updateCountsFromServer will download and set the counts.
func (store *Store) updateCountsFromServer() error {
@ -204,7 +206,6 @@ func (store *Store) loadSyncState() *syncState {
return
})
if err != nil {
store.log.WithError(err).Error("Failed to load sync state")
}