mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-30 18:25:19 +00:00
18 lines
342 B
Go
18 lines
342 B
Go
package circuit-breaker
|
|
|
|
// Keeper stores routes that have been "broken"
|
|
type Keeper struct {
|
|
}
|
|
|
|
|
|
func (k Keeper) GetRoutes(ctx sdk.Context) []string {
|
|
// TODO
|
|
}
|
|
|
|
func (k Keeper) SetRoutes(ctx sdk.Context, routes []string) {
|
|
// TODO
|
|
}
|
|
|
|
func (k Keeper) HandleCircuitBreakerProposal(ctx sdk.Context, c Content) {
|
|
k.SetRoutes(ctx, c.Routes)
|
|
} |