Something went wrong. Try again.
An ATProto Powered Reputation Network
Something went wrong. Try again.
433 B · 18 lines
Go
at master
12345678910111213141516171819package algorithms
import ( "context"
"provenance/internal/trust")
// Optimistic selects the highest score across all paths.type Optimistic struct{}
func (Optimistic) Describe() trust.Descriptor { return trust.Descriptor{Name: "Optimistic"} }
func (Optimistic) UsesNeighbors() {}
func (Optimistic) Calculate(ctx context.Context, input trust.Input) (trust.Result, error) { return calculate(ctx, input, highestScore, nil)}