This repository was archived by the owner on Jan 21, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,6 @@ func NewPluginInfo(receiver interface{}) (*PluginInfo, error) {
42
42
// Register registers an rpc-capable object for introspection and metadata service
43
43
func (m * PluginInfo ) Register (receiver interface {}) error {
44
44
r := & reflector {target : receiver }
45
- if err := r .validate (); err != nil {
46
- return err
47
- }
48
45
m .reflectors = append (m .reflectors , r )
49
46
return nil
50
47
}
Original file line number Diff line number Diff line change 4
4
"fmt"
5
5
"net/http"
6
6
"reflect"
7
- "strings"
8
7
"time"
9
8
"unicode"
10
9
"unicode/utf8"
@@ -44,14 +43,6 @@ func (r *reflector) targetType() reflect.Type {
44
43
return reflect .Indirect (reflect .ValueOf (r .target )).Type ()
45
44
}
46
45
47
- func (r * reflector ) validate () error {
48
- t := r .targetType ()
49
- if ! strings .Contains (t .PkgPath (), "github.com/docker/infrakit/pkg/rpc" ) {
50
- return fmt .Errorf ("object not a standard plugin type: %v" , t )
51
- }
52
- return nil
53
- }
54
-
55
46
// Interface returns the plugin type and version.
56
47
func (r * reflector ) Interface () spi.InterfaceSpec {
57
48
if v , is := r .target .(VersionedInterface ); is {
You can’t perform that action at this time.
0 commit comments