Skip to content
Permalink
Browse files
chore: fix typo (#18)
seprator should be separator
  • Loading branch information
spacewander committed Aug 30, 2020
1 parent b182a65 commit 540b3d3fd195a97e2a3a45cc7648e293ea7a574c
Showing 4 changed files with 5 additions and 5 deletions.
@@ -22,8 +22,8 @@ import "github.com/apache/apisix-control-plane/pkg/mem"
func (d *Destination) ToMem() []mem.MemModel {
result := make([]mem.MemModel, 0)
for _, s := range d.Subsets {
fullName := *d.Kind + seprator + *d.Name + seprator + *s.Name
group := *d.Kind + seprator + *d.Name
fullName := *d.Kind + separator + *d.Name + separator + *s.Name
group := *d.Kind + separator + *d.Name
upstream := &mem.Upstream{
Kind: d.Kind,
Name: d.Name,
@@ -21,7 +21,7 @@ import "github.com/apache/apisix-control-plane/pkg/mem"

func (g *Gateway) ToMem() []mem.MemModel {
result := make([]mem.MemModel, 0)
fullName := *g.Kind + seprator + *g.Name
fullName := *g.Kind + separator + *g.Name
servers := make([]*mem.Server, 0)
for _, e := range g.Servers {
server := e.ToMem()
@@ -19,7 +19,7 @@ package yml

import "github.com/apache/apisix-control-plane/pkg/mem"

const seprator = ":"
const separator = ":"

type YmlModel interface {
ToMem() []mem.MemModel
@@ -21,7 +21,7 @@ import "github.com/apache/apisix-control-plane/pkg/mem"

func (r *Rule) ToMem() []mem.MemModel {
result := make([]mem.MemModel, 0)
fullName := *r.Kind + seprator + *r.Name
fullName := *r.Kind + separator + *r.Name
for _, http := range r.HTTP {
route := &mem.Route{
Kind: r.Kind,

0 comments on commit 540b3d3

Please sign in to comment.