Missing closing curly brace after switch in PubSubConn example