aboutsummaryrefslogtreecommitdiff
path: root/plugin/forward/setup.go
diff options
context:
space:
mode:
authorGravatar Chris O'Haver <cohaver@infoblox.com> 2020-05-29 12:30:26 -0400
committerGravatar GitHub <noreply@github.com> 2020-05-29 18:30:26 +0200
commit54fb2112ac7616db93d5b9e505079d821f15ec2d (patch)
tree25ad6561a7c42881e620db0e7bd2497fb562476d /plugin/forward/setup.go
parentbc2ba28865248291f0a4492979f960eb00430ae2 (diff)
downloadcoredns-54fb2112ac7616db93d5b9e505079d821f15ec2d.tar.gz
coredns-54fb2112ac7616db93d5b9e505079d821f15ec2d.tar.zst
coredns-54fb2112ac7616db93d5b9e505079d821f15ec2d.zip
plugin/forward/grpc: Revert forward/grpc policy dedup (#3919)
* revert de-dup Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * unit test Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * use roundrobin policy in test Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
Diffstat (limited to 'plugin/forward/setup.go')
-rw-r--r--plugin/forward/setup.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugin/forward/setup.go b/plugin/forward/setup.go
index b5eeab912..9d873a411 100644
--- a/plugin/forward/setup.go
+++ b/plugin/forward/setup.go
@@ -10,7 +10,6 @@ import (
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/metrics"
"github.com/coredns/coredns/plugin/pkg/parse"
- "github.com/coredns/coredns/plugin/pkg/policy"
pkgtls "github.com/coredns/coredns/plugin/pkg/tls"
"github.com/coredns/coredns/plugin/pkg/transport"
@@ -221,11 +220,11 @@ func parseBlock(c *caddy.Controller, f *Forward) error {
}
switch x := c.Val(); x {
case "random":
- f.p = &policy.Random{}
+ f.p = &random{}
case "round_robin":
- f.p = &policy.RoundRobin{}
+ f.p = &roundRobin{}
case "sequential":
- f.p = &policy.Sequential{}
+ f.p = &sequential{}
default:
return c.Errf("unknown policy '%s'", x)
}
>jarred/support-tee Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/sqlite (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2023-10-13fix lockfile struct padding (#6495)Gravatar Dylan Conway 3-3/+18
* integrity padding * error message for bytes at end of struct