Permalink
Browse files

instance: make name pcpString to support mmv2

  • Loading branch information...
1 parent 6a584f0 commit 1c276a6e3ede00debf1818ccae98bc15b8d5b0cc @suyash suyash committed Aug 6, 2016
Showing with 3 additions and 3 deletions.
  1. +3 −3 instance.go
View
@@ -5,7 +5,7 @@ type Instances map[string]interface{}
// pcpInstance wraps a PCP compatible Instance
type pcpInstance struct {
- name string
+ name *pcpString
id uint32
offset int
}
@@ -17,10 +17,10 @@ type pcpInstance struct {
// but instead added using the AddInstance method of InstanceDomain
func newpcpInstance(name string) *pcpInstance {
return &pcpInstance{
- name, hash(name, 0), 0,
+ newpcpString(name), hash(name, 0), 0,
}
}
func (i *pcpInstance) String() string {
- return "Instance: " + i.name
+ return "Instance: " + i.name.val
}

0 comments on commit 1c276a6

Please sign in to comment.