File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
crates/platform-server/src/api Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -66,9 +66,20 @@ pub async fn submit_agent(
6666 let epoch = queries:: get_current_epoch ( & state. db ) . await . unwrap_or ( 0 ) ;
6767
6868 // Rate limiting: 0.33 submissions per epoch (1 every 3 epochs)
69- let can_submit = queries:: can_miner_submit ( & state. db , & req. miner_hotkey , epoch)
70- . await
71- . unwrap_or ( false ) ;
69+ let can_submit = match queries:: can_miner_submit ( & state. db , & req. miner_hotkey , epoch) . await {
70+ Ok ( can) => can,
71+ Err ( e) => {
72+ tracing:: error!( "Rate limit check failed for {}: {}" , req. miner_hotkey, e) ;
73+ true // Allow submission if rate limit check fails
74+ }
75+ } ;
76+
77+ tracing:: debug!(
78+ "Submission check: miner={}, epoch={}, can_submit={}" ,
79+ & req. miner_hotkey[ ..16 . min( req. miner_hotkey. len( ) ) ] ,
80+ epoch,
81+ can_submit
82+ ) ;
7283
7384 if !can_submit {
7485 return Err ( (
You can’t perform that action at this time.
0 commit comments