mirror of
https://github.com/tailscale/tailscale.git
synced 2025-06-10 17:58:38 +00:00
20 lines
403 B
Go
20 lines
403 B
Go
![]() |
// 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
|
||
|
}
|