Skip to content

Commit 07fe04a

Browse files
committed
Update router and messaging
Router update adds a timeout and is configured to use http2. Resolves #41 Resolves #42
1 parent 5059052 commit 07fe04a

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
sudo: required
22
language: go
3-
go: 1.9
3+
go: 1.9.x
44

55
addons:
66
apt:

vendor/vendor.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,10 @@
159159
"revisionTime": "2017-03-27T21:44:30Z"
160160
},
161161
{
162-
"checksumSHA1": "B0xFOAo+jHUmUX7nmdPCFClwxJ0=",
162+
"checksumSHA1": "JQZ9ii/Qu6/OX0oipEgQPUy3tt0=",
163163
"path": "github.com/nanobox-io/nanobox-router",
164-
"revision": "8cb764136ffa4b96c430a6f15ebd362ac0cfa26b",
165-
"revisionTime": "2017-09-08T21:39:15Z"
164+
"revision": "3477b55c49bf04771ac1dcce48c00f139eaf2757",
165+
"revisionTime": "2018-01-08T19:34:17Z"
166166
},
167167
{
168168
"checksumSHA1": "65+hx0QlLzpWe5pnjAzteKBnC10=",

vipmgr/ip_fake.go

+9-6
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
package vipmgr
55

66
import (
7-
"fmt"
8-
97
"github.com/nanopack/portal/core"
8+
"github.com/nanopack/portal/config"
109
)
1110

1211
type ip struct{}
@@ -16,14 +15,18 @@ func (self ip) Init() error {
1615
return nil
1716
}
1817
func (self ip) SetVip(vip core.Vip) error {
19-
return fmt.Errorf("Functionality not supported on darwin|windows")
18+
config.Log.Warn("VIP functionality not fully supported on darwin|windows. Continuing anyways")
19+
return nil
2020
}
2121
func (self ip) DeleteVip(vip core.Vip) error {
22-
return fmt.Errorf("Functionality not supported on darwin|windows")
22+
config.Log.Warn("VIP functionality not fully supported on darwin|windows. Continuing anyways")
23+
return nil
2324
}
2425
func (self ip) SetVips(vips []core.Vip) error {
25-
return fmt.Errorf("Functionality not supported on darwin|windows")
26+
config.Log.Warn("VIP functionality not fully supported on darwin|windows. Continuing anyways")
27+
return nil
2628
}
2729
func (self ip) GetVips() ([]core.Vip, error) {
28-
return nil, fmt.Errorf("Functionality not supported on darwin|windows")
30+
config.Log.Warn("VIP functionality not fully supported on darwin|windows. Continuing anyways")
31+
return nil, nil
2932
}

0 commit comments

Comments
 (0)