feat: implement fx.NoneMatch, fx.First, fx.Last (#1402)

* chore: use workers from options in fx.unlimitedWalk

* feat: add fx.NoneMatch

* feat: add fx.First, fx.Last

* chore: add more comments

* docs: add mr readme
This commit is contained in:
Kevin Wan
2022-01-02 13:33:15 +08:00
committed by GitHub
parent fe1da14332
commit c19d2637ea
5 changed files with 653 additions and 334 deletions

View File

@@ -43,7 +43,7 @@ func TestServer(t *testing.T) {
Mode: "console",
},
},
ListenOn: ":8080",
ListenOn: "localhost:8080",
Etcd: discov.EtcdConf{},
Auth: false,
Redis: redis.RedisKeyConf{},
@@ -67,7 +67,7 @@ func TestServerError(t *testing.T) {
Mode: "console",
},
},
ListenOn: ":8080",
ListenOn: "localhost:8080",
Etcd: discov.EtcdConf{
Hosts: []string{"localhost"},
},
@@ -86,7 +86,7 @@ func TestServer_HasEtcd(t *testing.T) {
Mode: "console",
},
},
ListenOn: ":8080",
ListenOn: "localhost:8080",
Etcd: discov.EtcdConf{
Hosts: []string{"notexist"},
Key: "any",