func NewSnapshotKey(documentKey *key.Key) sync.Key {
	return sync.NewKey(fmt.Sprintf("snapshot-%s", documentKey.BSONKey()))
}
NewSnapshotKey creates a new sync.Key of Snapshot for the given document.
package packs
import (
	"context"
	"errors"
	"fmt"
	gotime "time"
	"github.com/yorkie-team/yorkie/api/converter"
	"github.com/yorkie-team/yorkie/internal/log"
	"github.com/yorkie-team/yorkie/pkg/document"
	"github.com/yorkie-team/yorkie/pkg/document/change"
	"github.com/yorkie-team/yorkie/pkg/document/checkpoint"
	"github.com/yorkie-team/yorkie/pkg/document/key"
	"github.com/yorkie-team/yorkie/pkg/document/time"
	"github.com/yorkie-team/yorkie/pkg/types"
	"github.com/yorkie-team/yorkie/yorkie/backend"
	"github.com/yorkie-team/yorkie/yorkie/backend/db"
	"github.com/yorkie-team/yorkie/yorkie/backend/sync"
)
var (
	ErrInvalidServerSeq = errors.New("invalid server seq")
)
func NewPushPullKey(documentKey *key.Key) sync.Key {
	return sync.NewKey(fmt.Sprintf("pushpull-%s", documentKey.BSONKey()))
}