@@ -169,16 +169,16 @@ void SetCommand::_create_msg(RedisModuleKey &key,
169
169
const Path &path,
170
170
const StringView &val) const {
171
171
MsgUPtr msg;
172
- auto &module = RedisProtobuf::instance ();
172
+ auto &m = RedisProtobuf::instance ();
173
173
if (path.empty ()) {
174
- msg = module .proto_factory ()->create (path.type (), val);
174
+ msg = m .proto_factory ()->create (path.type (), val);
175
175
} else {
176
- msg = module .proto_factory ()->create (path.type ());
176
+ msg = m .proto_factory ()->create (path.type ());
177
177
MutableFieldRef field (msg.get (), path);
178
178
_set_field (field, val);
179
179
}
180
180
181
- if (RedisModule_ModuleTypeSetValue (&key, module .type (), msg.get ()) != REDISMODULE_OK) {
181
+ if (RedisModule_ModuleTypeSetValue (&key, m .type (), msg.get ()) != REDISMODULE_OK) {
182
182
throw Error (" failed to set message" );
183
183
}
184
184
@@ -197,9 +197,9 @@ void SetCommand::_set_msg(RedisModuleKey &key,
197
197
throw Error (" type mismatch" );
198
198
}
199
199
200
- auto &module = RedisProtobuf::instance ();
201
- auto msg = module .proto_factory ()->create (path.type (), val);
202
- if (RedisModule_ModuleTypeSetValue (&key, module .type (), msg.get ()) != REDISMODULE_OK) {
200
+ auto &m = RedisProtobuf::instance ();
201
+ auto msg = m .proto_factory ()->create (path.type (), val);
202
+ if (RedisModule_ModuleTypeSetValue (&key, m .type (), msg.get ()) != REDISMODULE_OK) {
203
203
throw Error (" failed to set message" );
204
204
}
205
205
0 commit comments