mirror of
https://github.com/logos-messaging/sds-go-bindings.git
synced 2026-01-02 14:13:08 +00:00
fix: lint stub
This commit is contained in:
parent
72b7e81bf3
commit
584f6505ea
@ -137,8 +137,8 @@ import (
|
||||
"sync"
|
||||
"unsafe"
|
||||
|
||||
"go.uber.org/zap"
|
||||
errorspkg "github.com/pkg/errors"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@ -2,7 +2,11 @@
|
||||
|
||||
package sds
|
||||
|
||||
import "errors"
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
// This file provides lint-only stubs that avoid requiring libsds.h/cgo
|
||||
// so linters can analyze this package without native dependencies.
|
||||
@ -11,7 +15,7 @@ import "errors"
|
||||
var ErrLintBuild = errors.New("sds: lint-only build stub: native libsds not linked")
|
||||
|
||||
// NewReliabilityManager returns an error in lint builds.
|
||||
func NewReliabilityManager() (*ReliabilityManager, error) {
|
||||
func NewReliabilityManager(logger *zap.Logger) (*ReliabilityManager, error) {
|
||||
return nil, ErrLintBuild
|
||||
}
|
||||
|
||||
@ -32,7 +36,9 @@ func (rm *ReliabilityManager) UnwrapReceivedMessage(message []byte) (*UnwrappedM
|
||||
}
|
||||
|
||||
// MarkDependenciesMet returns an error in lint builds.
|
||||
func (rm *ReliabilityManager) MarkDependenciesMet(messageIDs []MessageID, channelId string) error { return ErrLintBuild }
|
||||
func (rm *ReliabilityManager) MarkDependenciesMet(messageIDs []MessageID, channelId string) error {
|
||||
return ErrLintBuild
|
||||
}
|
||||
|
||||
// StartPeriodicTasks returns an error in lint builds.
|
||||
func (rm *ReliabilityManager) StartPeriodicTasks() error { return ErrLintBuild }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user