This repository was archived by the owner on Oct 25, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +0
-130
lines changed Expand file tree Collapse file tree 2 files changed +0
-130
lines changed Original file line number Diff line number Diff line change @@ -526,10 +526,6 @@ async function getAuth({
526
526
return await resp . json ( )
527
527
}
528
528
529
- export async function ping ( ) : Promise < void > {
530
- await fetch ( makeUrl ( ) , { method : 'GET' } )
531
- }
532
-
533
529
export const getNodesSlice : GetNodesSliceFn = async ( {
534
530
end_time,
535
531
start_time,
@@ -871,25 +867,6 @@ async function getExternalAssociation(
871
867
)
872
868
}
873
869
874
- async function getUserBadge ( {
875
- uid,
876
- signal,
877
- } : {
878
- uid : string
879
- signal : AbortSignal
880
- } ) : Promise < UserBadge > {
881
- verifyIsNotNull ( uid )
882
- verifyIsNotNull ( signal )
883
- const resp = await fetch ( makeUrl ( `/user/${ uid } /badge` ) , {
884
- method : 'GET' ,
885
- signal,
886
- } )
887
- if ( resp . ok ) {
888
- return await resp . json ( )
889
- }
890
- throw _makeResponseError ( resp )
891
- }
892
-
893
870
async function registerAccount ( {
894
871
name,
895
872
email,
@@ -1103,11 +1080,6 @@ export const smuggler = {
1103
1080
sticky : switchEdgeStickiness ,
1104
1081
delete : deleteEdge ,
1105
1082
} ,
1106
- snitch : {
1107
- // Todo(akindyakov): monitoring counters and logs
1108
- report : null ,
1109
- record : null ,
1110
- } ,
1111
1083
session : {
1112
1084
create : createSession ,
1113
1085
delete : deleteSession ,
@@ -1130,15 +1102,11 @@ export const smuggler = {
1130
1102
} ,
1131
1103
} ,
1132
1104
user : {
1133
- badge : {
1134
- get : getUserBadge ,
1135
- } ,
1136
1105
password : {
1137
1106
recover : passwordRecoverRequest ,
1138
1107
reset : passwordReset ,
1139
1108
change : passwordChange ,
1140
1109
} ,
1141
1110
register : registerAccount ,
1142
1111
} ,
1143
- ping,
1144
1112
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments