Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
leboiko committed Dec 21, 2024
1 parent 62a44f0 commit 59215cb
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 15 deletions.
20 changes: 14 additions & 6 deletions consumer/src/mode/resolver/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,23 @@ impl ResolverMessageType {
let ens = Ens::get_ens(Address::from_str(&account.id)?, resolver_consumer_context).await?;
if let Some(name) = ens.name.clone() {
info!("ENS for account: {:?}", ens);
Account::builder()
let updated_account = Account::builder()
.id(account.id.clone())
.label(name.clone())
.image(ens.image.clone().unwrap_or_default())
.account_type(account.account_type.clone())
.atom_id(account.atom_id.clone().unwrap_or_default())
.build()
.upsert(&resolver_consumer_context.pg_pool)
.await?;
.account_type(account.account_type.clone());
if let Some(atom_id) = account.atom_id.clone() {
updated_account
.atom_id(atom_id)
.build()
.upsert(&resolver_consumer_context.pg_pool)
.await?;
} else {
updated_account
.build()
.upsert(&resolver_consumer_context.pg_pool)
.await?;
}
} else {
info!("No ENS found for account: {:?}", account);
}
Expand Down
4 changes: 2 additions & 2 deletions devops/aws/ipfs/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: ipfs
spec:
replicas: 2
replicas: 1
selector:
matchLabels:
app: ipfs
Expand Down Expand Up @@ -45,7 +45,7 @@ spec:
volumes:
- name: ipfs-data
persistentVolumeClaim:
claimName: ipfs-data
claimName: ipfs-data-new
- name: ipfs-scripts
configMap:
name: ipfs-scripts
Expand Down
8 changes: 5 additions & 3 deletions devops/aws/ipfs/pvc.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: ipfs-data
name: ipfs-data-new
labels:
component: ipfs
spec:
accessModes:
- ReadWriteOnce
storageClassName: gp2-immediate
resources:
requests:
storage: 20Gi
storage: 20Gi
storageClassName: gp2-resizable
9 changes: 5 additions & 4 deletions devops/aws/ipfs/storage-class.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: gp2-immediate
provisioner: ebs.csi.aws.com
volumeBindingMode: Immediate
name: gp2-resizable
provisioner: kubernetes.io/aws-ebs
parameters:
type: gp2
encrypted: "true"
allowVolumeExpansion: true # This is the key setting
reclaimPolicy: Retain
volumeBindingMode: WaitForFirstConsumer
1 change: 1 addition & 0 deletions devops/aws/safe-content-api/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Deployment
metadata:
name: safe-content
spec:
replicas: 2
selector:
matchLabels:
io.kompose.service: safe-content
Expand Down

0 comments on commit 59215cb

Please sign in to comment.