You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apisix.apache.org by kv...@apache.org on 2020/08/30 15:16:06 UTC
[apisix-control-plane] branch master updated: chore: fix typo (#18)
This is an automated email from the ASF dual-hosted git repository.
kvn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-control-plane.git
The following commit(s) were added to refs/heads/master by this push:
new 540b3d3 chore: fix typo (#18)
540b3d3 is described below
commit 540b3d3fd195a97e2a3a45cc7648e293ea7a574c
Author: 罗泽轩 <sp...@gmail.com>
AuthorDate: Sun Aug 30 23:15:57 2020 +0800
chore: fix typo (#18)
seprator should be separator
---
pkg/yml/destination.go | 4 ++--
pkg/yml/gateway.go | 2 +-
pkg/yml/model.go | 2 +-
pkg/yml/rule.go | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/pkg/yml/destination.go b/pkg/yml/destination.go
index 8f51ec0..6490595 100644
--- a/pkg/yml/destination.go
+++ b/pkg/yml/destination.go
@@ -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,
diff --git a/pkg/yml/gateway.go b/pkg/yml/gateway.go
index f724efa..41f1cde 100644
--- a/pkg/yml/gateway.go
+++ b/pkg/yml/gateway.go
@@ -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()
diff --git a/pkg/yml/model.go b/pkg/yml/model.go
index 432de7a..34af308 100644
--- a/pkg/yml/model.go
+++ b/pkg/yml/model.go
@@ -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
diff --git a/pkg/yml/rule.go b/pkg/yml/rule.go
index 1fd716d..2154c4d 100644
--- a/pkg/yml/rule.go
+++ b/pkg/yml/rule.go
@@ -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,