Files
Agent-System-Backend/internal/instanceguard/guard_other.go
T
agent-exec-transport 7b379d28e7
governance / governance (pull_request) Successful in 17s
ci / vet-and-test (pull_request) Successful in 1m6s
agent-exec transport d2c63b4a83821a5716997a28174233b1/d6e403e1e778
2026-10-18 09:20:03 +00:00

19 lines
429 B
Go

//go:build !unix
package instanceguard
import "fmt"
// Acquire 在非 unix 平台拒绝 SQLite 活动服务。PostgreSQL 档不调用本函数。
func Acquire(string) (*Lease, error) {
return nil, ErrUnsupported
}
func (l *Lease) writeRecord(uint64, uint64, string, string) error {
return ErrUnsupported
}
func (l *Lease) currentDB() (uint64, uint64, bool, error) {
return 0, 0, false, fmt.Errorf("%w", ErrUnsupported)
}