Skip to content

Commit cd1d2dd

Browse files
committed
appengine/remote_api: Fix old-style appengine_internal uses
Change-Id: I3b69c00f21a9156ad55dca154e93324e44dfae8b
1 parent 9e7af23 commit cd1d2dd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

remote_api/client.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func (c *context) Warningf(format string, args ...interface{}) { c.logf("WARNIN
7676
func (c *context) Errorf(format string, args ...interface{}) { c.logf("ERROR", format, args...) }
7777
func (c *context) Criticalf(format string, args ...interface{}) { c.logf("CRITICAL", format, args...) }
7878

79-
func (c *context) Call(service, method string, in, out appengine_internal.ProtoMessage, opts *appengine_internal.CallOptions) error {
79+
func (c *context) Call(service, method string, in, out proto.Message, opts *internal.CallOptions) error {
8080
req, err := proto.Marshal(in)
8181
if err != nil {
8282
return fmt.Errorf("error marshalling request: %v", err)
@@ -114,7 +114,7 @@ func (c *context) Call(service, method string, in, out appengine_internal.ProtoM
114114
}
115115

116116
if ae := remResp.GetApplicationError(); ae != nil {
117-
return &appengine_internal.APIError{
117+
return &internal.APIError{
118118
Code: ae.GetCode(),
119119
Detail: ae.GetDetail(),
120120
Service: service,

remote_api/remote_api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func handle(w http.ResponseWriter, req *http.Request) {
8787
remRes := &pb.Response{}
8888
if err == nil {
8989
remRes.Response = rawRes.buf
90-
} else if ae, ok := err.(*appengine_internal.APIError); ok {
90+
} else if ae, ok := err.(*internal.APIError); ok {
9191
remRes.ApplicationError = &pb.ApplicationError{
9292
Code: &ae.Code,
9393
Detail: &ae.Detail,

0 commit comments

Comments
 (0)