Factor Studios commited on
Commit
b3d0269
·
verified ·
1 Parent(s): fc6007e

Update websocket_storage.py

Browse files
Files changed (1) hide show
  1. websocket_storage.py +4 -9
websocket_storage.py CHANGED
@@ -236,15 +236,10 @@ class WebSocketGPUStorage:
236
  # Store state in memory
237
  operation = {
238
  'operation': 'state',
239
- 'type': 'write',
240
- 'key': state_key,
241
- 'data': state_data,
242
- 'timestamp': time.time(),
243
- 'metadata': {
244
- 'component': component,
245
- 'state_id': state_id,
246
- 'storage_type': 'memory'
247
- }
248
  }
249
 
250
  response = self._send_operation(operation)
 
236
  # Store state in memory
237
  operation = {
238
  'operation': 'state',
239
+ 'type': 'save',
240
+ 'component': component,
241
+ 'state_id': state_id,
242
+ 'data': state_data
 
 
 
 
 
243
  }
244
 
245
  response = self._send_operation(operation)