@@ -1219,7 +1219,7 @@ impl LDNApplication {
1219
1219
SpsChangeRequest :: new ( & request_id, allowed_sps, max_deviation, & signer, false ) ;
1220
1220
if let Some ( active_allocation) = app_file. allocation . active ( ) {
1221
1221
app_state = AppState :: ReadyToSign ;
1222
- app_file. handle_changing_sps_request (
1222
+ app_file = app_file . handle_changing_sps_request (
1223
1223
& signer. github_username ,
1224
1224
& sps_change_request,
1225
1225
& app_state,
@@ -1228,7 +1228,7 @@ impl LDNApplication {
1228
1228
} else {
1229
1229
app_state = AppState :: Granted ;
1230
1230
let request_id = uuidv4:: uuid:: v4 ( ) ;
1231
- app_file. handle_changing_sps_request (
1231
+ app_file = app_file . handle_changing_sps_request (
1232
1232
& signer. github_username ,
1233
1233
& sps_change_request,
1234
1234
& app_state,
@@ -1250,6 +1250,12 @@ impl LDNApplication {
1250
1250
"Application is in the Changing Storage Providers state. Waiting for approval." ;
1251
1251
}
1252
1252
1253
+ let commit_message = if threshold_to_use < 2 {
1254
+ "Update Storage Providers" . to_string ( )
1255
+ } else {
1256
+ "Start signing allowed storage providers" . to_string ( )
1257
+ } ;
1258
+
1253
1259
if app_state_before_change == AppState :: ReadyToSign {
1254
1260
self . update_and_commit_application_state (
1255
1261
app_file. clone ( ) ,
@@ -1258,7 +1264,7 @@ impl LDNApplication {
1258
1264
self . file_sha . clone ( ) ,
1259
1265
self . branch_name . clone ( ) ,
1260
1266
self . file_name . clone ( ) ,
1261
- "Start signing allowed storage providers" . to_string ( ) ,
1267
+ commit_message ,
1262
1268
)
1263
1269
. await ?;
1264
1270
} else {
0 commit comments