diff options
author | Andrew Gallant <jamslam@gmail.com> | 2013-12-28 10:13:20 -0500 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2018-09-08 16:49:21 +0200 |
commit | 76f9adb5991081e27ebc6eec82db6bdba36c910f (patch) | |
tree | cbf0e38e95853b9fc3c1133f901e7b4c5f6ab435 /nexgb/xgbgen/go_request_reply.go | |
parent | 33509dbeb0acd7abbbb9e8c434d0c3f0ce8a3230 (diff) | |
download | haven-76f9adb5991081e27ebc6eec82db6bdba36c910f.tar.gz haven-76f9adb5991081e27ebc6eec82db6bdba36c910f.tar.xz haven-76f9adb5991081e27ebc6eec82db6bdba36c910f.zip |
Use consistent extension names. Close #6.
Diffstat (limited to 'nexgb/xgbgen/go_request_reply.go')
-rw-r--r-- | nexgb/xgbgen/go_request_reply.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/nexgb/xgbgen/go_request_reply.go b/nexgb/xgbgen/go_request_reply.go index ee5c974..a2c6d9c 100644 --- a/nexgb/xgbgen/go_request_reply.go +++ b/nexgb/xgbgen/go_request_reply.go @@ -79,8 +79,7 @@ func (r *Request) CheckExt(c *Context) { if !c.protocol.isExt() { return } - c.Putln("if _, ok := c.Extensions[\"%s\"]; !ok {", - strings.ToUpper(c.protocol.ExtXName)) + c.Putln("if _, ok := c.Extensions[\"%s\"]; !ok {", c.protocol.ExtXName) c.Putln("panic(\"Cannot issue request '%s' using the uninitialized "+ "extension '%s'. %s.Init(connObj) must be called first.\")", r.SrcName(), c.protocol.ExtXName, c.protocol.PkgName()) @@ -155,8 +154,7 @@ func (r *Request) WriteRequest(c *Context) { c.Putln("buf := make([]byte, size)") c.Putln("") if c.protocol.isExt() { - c.Putln("buf[b] = c.Extensions[\"%s\"]", - strings.ToUpper(c.protocol.ExtXName)) + c.Putln("buf[b] = c.Extensions[\"%s\"]", c.protocol.ExtXName) c.Putln("b += 1") c.Putln("") } |