You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
403 B
19 lines
403 B
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build !loong64
|
|
|
|
package tsconsensus
|
|
|
|
import (
|
|
"github.com/hashicorp/raft"
|
|
raftboltdb "github.com/hashicorp/raft-boltdb/v2"
|
|
)
|
|
|
|
func boltStore(path string) (raft.StableStore, raft.LogStore, error) {
|
|
store, err := raftboltdb.NewBoltStore(path)
|
|
if err != nil {
|
|
return nil, nil, err
|
|
}
|
|
return store, store, nil
|
|
}
|
|
|