Skip to content

Commit

Permalink
import sub2 package
Browse files Browse the repository at this point in the history
  • Loading branch information
kazegusuri committed Apr 8, 2016
1 parent a25684f commit 85c7092
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/server/a_bit_of_everything.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (

examples "github.com/gengo/grpc-gateway/examples/examplepb"
sub "github.com/gengo/grpc-gateway/examples/sub"
sub2 "github.com/gengo/grpc-gateway/examples/sub2"
"github.com/golang/glog"
"github.com/rogpeppe/fastuuid"
"golang.org/x/net/context"
Expand Down Expand Up @@ -84,7 +85,7 @@ func (s *_ABitOfEverythingServer) BulkCreate(stream examples.ABitOfEverythingSer
return stream.SendAndClose(new(examples.EmptyMessage))
}

func (s *_ABitOfEverythingServer) Lookup(ctx context.Context, msg *examples.IdMessage) (*examples.ABitOfEverything, error) {
func (s *_ABitOfEverythingServer) Lookup(ctx context.Context, msg *sub2.IdMessage) (*examples.ABitOfEverything, error) {
s.m.Lock()
defer s.m.Unlock()
glog.Info(msg)
Expand Down Expand Up @@ -150,7 +151,7 @@ func (s *_ABitOfEverythingServer) Update(ctx context.Context, msg *examples.ABit
return new(examples.EmptyMessage), nil
}

func (s *_ABitOfEverythingServer) Delete(ctx context.Context, msg *examples.IdMessage) (*examples.EmptyMessage, error) {
func (s *_ABitOfEverythingServer) Delete(ctx context.Context, msg *sub2.IdMessage) (*examples.EmptyMessage, error) {
s.m.Lock()
defer s.m.Unlock()

Expand Down

0 comments on commit 85c7092

Please sign in to comment.